OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CC_RESOURCES_TRANSFERABLE_RESOURCE_H_ | 5 #ifndef CC_RESOURCES_TRANSFERABLE_RESOURCE_H_ |
6 #define CC_RESOURCES_TRANSFERABLE_RESOURCE_H_ | 6 #define CC_RESOURCES_TRANSFERABLE_RESOURCE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 21 matching lines...) Expand all Loading... |
32 static void ReturnResources(const TransferableResourceArray& input, | 32 static void ReturnResources(const TransferableResourceArray& input, |
33 ReturnedResourceArray* output); | 33 ReturnedResourceArray* output); |
34 | 34 |
35 ResourceId id; | 35 ResourceId id; |
36 ResourceFormat format; | 36 ResourceFormat format; |
37 uint32_t filter; | 37 uint32_t filter; |
38 gfx::Size size; | 38 gfx::Size size; |
39 gpu::MailboxHolder mailbox_holder; | 39 gpu::MailboxHolder mailbox_holder; |
40 bool read_lock_fences_enabled; | 40 bool read_lock_fences_enabled; |
41 bool is_software; | 41 bool is_software; |
| 42 #if defined(OS_ANDROID) |
| 43 bool is_backed_by_surface_texture; |
| 44 bool wants_promotion_hint; |
| 45 #endif |
42 bool is_overlay_candidate; | 46 bool is_overlay_candidate; |
43 gfx::ColorSpace color_space; | 47 gfx::ColorSpace color_space; |
44 }; | 48 }; |
45 | 49 |
46 } // namespace cc | 50 } // namespace cc |
47 | 51 |
48 #endif // CC_RESOURCES_TRANSFERABLE_RESOURCE_H_ | 52 #endif // CC_RESOURCES_TRANSFERABLE_RESOURCE_H_ |
OLD | NEW |