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

Unified Diff: cc/resources/texture_mailbox.h

Issue 2651793007: Implemented StructTraits for cc::TextureMailbox (Closed)
Patch Set: c Created 3 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
« no previous file with comments | « cc/resources/DEPS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/texture_mailbox.h
diff --git a/cc/resources/texture_mailbox.h b/cc/resources/texture_mailbox.h
index a8d1f79e2c0264a29e1c3d7a29f2c5800464793e..bcb40c575a56b308c3ab0e74ef5ab41b497816b5 100644
--- a/cc/resources/texture_mailbox.h
+++ b/cc/resources/texture_mailbox.h
@@ -13,10 +13,16 @@
#include "base/memory/shared_memory.h"
#include "cc/base/cc_export.h"
#include "gpu/command_buffer/common/mailbox_holder.h"
+#include "mojo/public/cpp/bindings/struct_traits.h"
#include "ui/gfx/color_space.h"
#include "ui/gfx/geometry/size.h"
namespace cc {
+
+namespace mojom {
+class TextureMailboxDataView;
+}
+
class SharedBitmap;
// TODO(skaslev, danakj) Rename this class more apropriately since now it
@@ -93,6 +99,9 @@ class CC_EXPORT TextureMailbox {
#endif
private:
+ friend struct mojo::StructTraits<mojom::TextureMailboxDataView,
+ TextureMailbox>;
+
gpu::MailboxHolder mailbox_holder_;
SharedBitmap* shared_bitmap_;
gfx::Size size_in_pixels_;
« no previous file with comments | « cc/resources/DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698