Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(909)

Unified Diff: services/ui/public/cpp/bitmap/child_shared_bitmap_manager.cc

Issue 2909873002: Add cc::SharedBitmap::shared_memory_handle() (Closed)
Patch Set: fix tests Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/viz/display_compositor/host_shared_bitmap_manager_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/public/cpp/bitmap/child_shared_bitmap_manager.cc
diff --git a/services/ui/public/cpp/bitmap/child_shared_bitmap_manager.cc b/services/ui/public/cpp/bitmap/child_shared_bitmap_manager.cc
index bb4ad834338734f2893a63ed3e4688fb3d872df1..13eb4fc12d2616ebf3ee7caf673632acc8be6e37 100644
--- a/services/ui/public/cpp/bitmap/child_shared_bitmap_manager.cc
+++ b/services/ui/public/cpp/bitmap/child_shared_bitmap_manager.cc
@@ -46,6 +46,13 @@ class ChildSharedBitmap : public cc::SharedBitmap {
(*shared_bitmap_manager_ptr_)->DidDeleteSharedBitmap(id());
}
+ // cc::SharedBitmap:
+ base::SharedMemoryHandle GetSharedMemoryHandle() const override {
+ if (!shared_memory_holder_)
+ return base::SharedMemoryHandle();
+ return shared_memory_holder_->handle();
+ }
+
private:
scoped_refptr<cc::mojom::ThreadSafeSharedBitmapManagerAssociatedPtr>
shared_bitmap_manager_ptr_;
« no previous file with comments | « components/viz/display_compositor/host_shared_bitmap_manager_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698