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_ |