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

Unified Diff: content/child/child_shared_bitmap_manager.h

Issue 802433003: Remove cc::SharedBitmap::memory() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@nogetbitmapfor
Patch Set: Created 6 years 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 | « cc/test/test_shared_bitmap_manager.cc ('k') | content/child/child_shared_bitmap_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/child_shared_bitmap_manager.h
diff --git a/content/child/child_shared_bitmap_manager.h b/content/child/child_shared_bitmap_manager.h
index 0d3bc10793a9b754348777d68b68307418a76f93..83a0a5a99d342e1cfb605543efbc7da232dcd37f 100644
--- a/content/child/child_shared_bitmap_manager.h
+++ b/content/child/child_shared_bitmap_manager.h
@@ -13,6 +13,18 @@
namespace content {
+class SharedMemoryBitmap : public cc::SharedBitmap {
+ public:
+ base::SharedMemory* shared_memory() { return shared_memory_; }
+
+ protected:
+ SharedMemoryBitmap(uint8* pixels,
+ const cc::SharedBitmapId& id,
+ base::SharedMemory* shared_memory);
+
+ base::SharedMemory* shared_memory_;
+};
+
class ChildSharedBitmapManager : public cc::SharedBitmapManager {
public:
ChildSharedBitmapManager(scoped_refptr<ThreadSafeSender> sender);
@@ -27,6 +39,8 @@ class ChildSharedBitmapManager : public cc::SharedBitmapManager {
scoped_ptr<cc::SharedBitmap> GetBitmapForSharedMemory(
base::SharedMemory* mem);
+ scoped_ptr<SharedMemoryBitmap> AllocateSharedMemoryBitmap(
+ const gfx::Size& size);
private:
scoped_refptr<ThreadSafeSender> sender_;
« no previous file with comments | « cc/test/test_shared_bitmap_manager.cc ('k') | content/child/child_shared_bitmap_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698