forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a GUID to base::SharedMemoryHandle.
This allows SharedMemoryHandle to be tracked across processes. SharedMemoryHandles that point to the same region should have the same GUID. This CL does not finish all of the GUID plumbing. The following still needs to be done: * Passing GUID through Mojo. rockot@ has said that he will do this and TODOs have been left for him in the code. * Passing GUID for base::FieldTrial, which requires a SharedMemoryHandle shortly after proess launch, before IPC is set up. * Updating ArcGpuVideoDecodeAccelerator to use mojo ScopedHandles instead of fds. * Updating serialization of gfx::GpuMemoryBufferHandle to pass through shared buffer handles instead of generic handles. BUG=713763 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.win:win10_chromium_x64_rel_ng Review-Url: https://codereview.chromium.org/2859843002 Cr-Commit-Position: refs/heads/master@{#469877}
- Loading branch information
Showing
24 changed files
with
289 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright 2017 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#include "base/memory/shared_memory_handle.h" | ||
|
||
namespace base { | ||
|
||
SharedMemoryHandle::SharedMemoryHandle(const SharedMemoryHandle& handle) = | ||
default; | ||
|
||
SharedMemoryHandle& SharedMemoryHandle::operator=( | ||
const SharedMemoryHandle& handle) = default; | ||
|
||
base::UnguessableToken SharedMemoryHandle::GetGUID() const { | ||
return guid_; | ||
} | ||
|
||
} // namespace base |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.