Chromium Code Reviews| Index: cc/transferable_resource.h |
| diff --git a/cc/transferable_resource.h b/cc/transferable_resource.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..4cf8fcb4c69cbc5c86bf20e6ba49ab654a460711 |
| --- /dev/null |
| +++ b/cc/transferable_resource.h |
| @@ -0,0 +1,34 @@ |
| +// 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" |
| + |
| +namespace cc { |
| + |
| +struct Mailbox { |
| + WebKit::WGC3Dbyte name[64]; |
| +}; |
| + |
| +struct TransferableResource { |
| + unsigned id; |
| + WebKit::WGC3Denum format; |
| + gfx::Size size; |
| + Mailbox mailbox; |
| +}; |
| + |
| +typedef std::vector<TransferableResource> TransferableResourceArray; |
| + |
| +struct TransferableResourceList { |
|
aelias_OOO_until_Jul13
2012/10/10 00:16:17
Clang builds fail, complaining this needs a constr
|
| + TransferableResourceArray resources; |
| + unsigned sync_point; |
| +}; |
| + |
| +} // namespace cc |
| +#endif // CC_TRANSERABLE_RESOURCE_H_ |