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

Unified Diff: cc/transferable_resource.h

Issue 10915298: Add CCDelegatingRenderer, and corresponding IPCs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix clang Created 8 years, 2 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/ipc/cc_render_pass_traits.cc ('k') | cc/transferable_resource.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/transferable_resource.h
diff --git a/cc/transferable_resource.h b/cc/transferable_resource.h
new file mode 100644
index 0000000000000000000000000000000000000000..0d38c041ab4bb65756c660074a420346c2f7f1f6
--- /dev/null
+++ b/cc/transferable_resource.h
@@ -0,0 +1,42 @@
+// Copyright 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CC_TRANSERABLE_RESOURCE_H_
+#define CC_TRANSERABLE_RESOURCE_H_
+
+#include <vector>
+
+#include "ui/gfx/size.h"
+#include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3D.h"
+#include "third_party/WebKit/Source/Platform/chromium/public/WebCompositorTransferableResourceList.h"
+
+namespace cc {
+
+struct Mailbox {
+ WebKit::WGC3Dbyte name[64];
+};
+
+struct TransferableResource {
+ TransferableResource();
+ ~TransferableResource();
+
+ unsigned id;
+ WebKit::WGC3Denum format;
+ gfx::Size size;
+ Mailbox mailbox;
+};
+
+typedef std::vector<TransferableResource> TransferableResourceArray;
+
+struct TransferableResourceList :
+ public WebKit::WebCompositorTransferableResourceList {
+ TransferableResourceList();
+ ~TransferableResourceList();
+
+ TransferableResourceArray resources;
+ unsigned sync_point;
+};
+
+} // namespace cc
+#endif // CC_TRANSERABLE_RESOURCE_H_
« no previous file with comments | « cc/ipc/cc_render_pass_traits.cc ('k') | cc/transferable_resource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698