| Index: cc/resources/shared_bitmap.h
|
| diff --git a/cc/resources/shared_bitmap.h b/cc/resources/shared_bitmap.h
|
| index 9575068411ac512038088663b7854aba5b9ada00..d62ffccaa82911796893590fe602d7c1e1941b7a 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,11 @@ class CC_EXPORT SharedBitmap {
|
|
|
| SharedBitmapId id() { return id_; }
|
|
|
| + // Returns true if the size is valid and false otherwise.
|
| + static bool GetSizeInBytes(const gfx::Size& size, size_t* size_in_bytes);
|
| +
|
| + static SharedBitmapId GenerateId();
|
| +
|
| private:
|
| base::SharedMemory* memory_;
|
| SharedBitmapId id_;
|
|
|