Index: cc/resources/texture_mailbox.h |
diff --git a/cc/resources/texture_mailbox.h b/cc/resources/texture_mailbox.h |
index cec60cedacaa46b465ac9a54406505e360dca140..07a118f8353d0c7b5086d3fe4fa69dfb53d782df 100644 |
--- a/cc/resources/texture_mailbox.h |
+++ b/cc/resources/texture_mailbox.h |
@@ -22,6 +22,11 @@ class CC_EXPORT TextureMailbox { |
TextureMailbox(); |
explicit TextureMailbox(const gpu::MailboxHolder& mailbox_holder); |
TextureMailbox(const gpu::Mailbox& mailbox, uint32 target, uint32 sync_point); |
+ TextureMailbox(const gpu::Mailbox& mailbox, |
+ uint32 target, |
+ uint32 sync_point, |
+ const gfx::Size& size, |
danakj
2015/05/29 20:04:15
size_in_pixels?
achaulk
2015/06/01 15:43:10
Done.
|
+ bool allow_overlay); |
TextureMailbox(SharedBitmap* shared_bitmap, const gfx::Size& size); |
~TextureMailbox(); |
@@ -41,20 +46,19 @@ class CC_EXPORT TextureMailbox { |
} |
bool allow_overlay() const { return allow_overlay_; } |
- void set_allow_overlay(bool allow_overlay) { allow_overlay_ = allow_overlay; } |
bool nearest_neighbor() const { return nearest_neighbor_; } |
void set_nearest_neighbor(bool nearest_neighbor) { |
nearest_neighbor_ = nearest_neighbor; |
} |
+ gfx::Size size() const { return size_; } |
danakj
2015/05/29 20:04:15
size_in_pixels?
Can you comment when this is vali
achaulk
2015/06/01 15:43:10
Done.
|
SharedBitmap* shared_bitmap() const { return shared_bitmap_; } |
- gfx::Size shared_memory_size() const { return shared_memory_size_; } |
size_t SharedMemorySizeInBytes() const; |
private: |
gpu::MailboxHolder mailbox_holder_; |
SharedBitmap* shared_bitmap_; |
- gfx::Size shared_memory_size_; |
+ gfx::Size size_; |
bool allow_overlay_; |
bool nearest_neighbor_; |
}; |