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

Side by Side Diff: cc/resources/transferable_resource.h

Issue 2508203004: Add hints for potential overlay promotion on android. (Closed)
Patch Set: rebased Created 4 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 unified diff | Download patch
« no previous file with comments | « cc/resources/texture_mailbox.cc ('k') | cc/resources/transferable_resource.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « cc/resources/texture_mailbox.cc ('k') | cc/resources/transferable_resource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698