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

Unified Diff: cc/resources/texture_mailbox.h

Issue 197223003: Start of hardware overlay support in CC with Ubercompositor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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/texture_mailbox.h
diff --git a/cc/resources/texture_mailbox.h b/cc/resources/texture_mailbox.h
index 229f7a735148892d44106c22a67c656b4abe14b4..ecbfd2d7fd62be2fe68c524793d3d219959c9513 100644
--- a/cc/resources/texture_mailbox.h
+++ b/cc/resources/texture_mailbox.h
@@ -40,6 +40,9 @@ class CC_EXPORT TextureMailbox {
mailbox_holder_.sync_point = sync_point;
}
+ bool hw_backed() const { return hw_backed_; }
piman 2014/03/14 03:42:34 nit: hw_backed is misleading. Regular textures are
alexst (slow to review) 2014/03/14 19:54:22 I went back and forth on the name and abbreviated
+ void set_hw_backed(bool hw_backed) { hw_backed_ = hw_backed; }
+
base::SharedMemory* shared_memory() const { return shared_memory_; }
gfx::Size shared_memory_size() const { return shared_memory_size_; }
size_t shared_memory_size_in_bytes() const;
@@ -48,6 +51,7 @@ class CC_EXPORT TextureMailbox {
gpu::MailboxHolder mailbox_holder_;
base::SharedMemory* shared_memory_;
gfx::Size shared_memory_size_;
+ bool hw_backed_;
};
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698