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

Unified Diff: cc/resources/transferable_resource.h

Issue 1531403002: Revert "Delete CC." (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years 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/texture_uploader_unittest.cc ('k') | cc/resources/transferable_resource.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/transferable_resource.h
diff --git a/cc/resources/transferable_resource.h b/cc/resources/transferable_resource.h
new file mode 100644
index 0000000000000000000000000000000000000000..1e5aaf3aad452997d1b923dd58f7573a88fe0a16
--- /dev/null
+++ b/cc/resources/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_RESOURCES_TRANSFERABLE_RESOURCE_H_
+#define CC_RESOURCES_TRANSFERABLE_RESOURCE_H_
+
+#include <vector>
+
+#include "base/basictypes.h"
+#include "cc/resources/resource_format.h"
+#include "gpu/command_buffer/common/mailbox_holder.h"
+#include "ui/gfx/geometry/size.h"
+
+namespace cc {
+
+struct ReturnedResource;
+typedef std::vector<ReturnedResource> ReturnedResourceArray;
+struct TransferableResource;
+typedef std::vector<TransferableResource> TransferableResourceArray;
+
+struct TransferableResource {
+ TransferableResource();
+ ~TransferableResource();
+
+ ReturnedResource ToReturnedResource() const;
+ static void ReturnResources(const TransferableResourceArray& input,
+ ReturnedResourceArray* output);
+
+ unsigned id;
+ ResourceFormat format;
+ uint32 filter;
+ gfx::Size size;
+ gpu::MailboxHolder mailbox_holder;
+ bool is_repeated;
+ bool is_software;
+ bool allow_overlay;
+};
+
+} // namespace cc
+
+#endif // CC_RESOURCES_TRANSFERABLE_RESOURCE_H_
« no previous file with comments | « cc/resources/texture_uploader_unittest.cc ('k') | cc/resources/transferable_resource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698