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

Unified Diff: cc/resources/shared_bitmap.h

Issue 148243013: Add shared bitmap managers for browser and renderer processes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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: cc/resources/shared_bitmap.h
diff --git a/cc/resources/shared_bitmap.h b/cc/resources/shared_bitmap.h
index 9575068411ac512038088663b7854aba5b9ada00..2382098b95043e16f76cedf71da573c7cb3f5f68 100644
--- a/cc/resources/shared_bitmap.h
+++ b/cc/resources/shared_bitmap.h
@@ -10,6 +10,7 @@
#include "base/memory/shared_memory.h"
#include "cc/base/cc_export.h"
#include "gpu/command_buffer/common/mailbox.h"
+#include "ui/gfx/size.h"
namespace base { class SharedMemory; }
@@ -38,6 +39,10 @@ class CC_EXPORT SharedBitmap {
SharedBitmapId id() { return id_; }
+ static size_t GetSizeInBytes(const gfx::Size& size);
+
+ static SharedBitmapId GenerateId();
+
private:
base::SharedMemory* memory_;
SharedBitmapId id_;

Powered by Google App Engine
This is Rietveld 408576698