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

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

Issue 2909873002: Add cc::SharedBitmap::shared_memory_handle() (Closed)
Patch Set: Address on reviews Created 3 years, 7 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
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 92fc4300b1891aba9d4cc158ca79d771fb9723b3..cf6197cd7efecdf4136b123ace2dc6aaf42c6389 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 shared_memory_handle() const override {
+ if (!shared_memory_holder_)
+ return base::SharedMemoryHandle();
+ return shared_memory_holder_->handle();
+ }
+
private:
scoped_refptr<cc::mojom::ThreadSafeSharedBitmapManagerAssociatedPtr>
shared_bitmap_manager_ptr_;

Powered by Google App Engine
This is Rietveld 408576698