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

Side by Side Diff: cc/trees/layer_tree_host.h

Issue 21159007: cc: Adding support for RGBA_4444 tile textures (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: deprecate GLenum format throughout cc Created 7 years, 3 months 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
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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_TREES_LAYER_TREE_HOST_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_H_
6 #define CC_TREES_LAYER_TREE_HOST_H_ 6 #define CC_TREES_LAYER_TREE_HOST_H_
7 7
8 #include <limits> 8 #include <limits>
9 #include <list> 9 #include <list>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/cancelable_callback.h" 13 #include "base/cancelable_callback.h"
14 #include "base/containers/hash_tables.h" 14 #include "base/containers/hash_tables.h"
15 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
16 #include "base/memory/scoped_ptr.h" 16 #include "base/memory/scoped_ptr.h"
17 #include "base/memory/weak_ptr.h" 17 #include "base/memory/weak_ptr.h"
18 #include "base/time/time.h" 18 #include "base/time/time.h"
19 #include "cc/animation/animation_events.h" 19 #include "cc/animation/animation_events.h"
20 #include "cc/base/cc_export.h" 20 #include "cc/base/cc_export.h"
21 #include "cc/base/scoped_ptr_vector.h" 21 #include "cc/base/scoped_ptr_vector.h"
22 #include "cc/input/input_handler.h" 22 #include "cc/input/input_handler.h"
23 #include "cc/input/scrollbar.h" 23 #include "cc/input/scrollbar.h"
24 #include "cc/input/top_controls_state.h" 24 #include "cc/input/top_controls_state.h"
25 #include "cc/layers/layer_lists.h" 25 #include "cc/layers/layer_lists.h"
26 #include "cc/output/output_surface.h" 26 #include "cc/output/output_surface.h"
27 #include "cc/resources/resource_provider.h"
27 #include "cc/resources/scoped_ui_resource.h" 28 #include "cc/resources/scoped_ui_resource.h"
28 #include "cc/resources/ui_resource_bitmap.h" 29 #include "cc/resources/ui_resource_bitmap.h"
29 #include "cc/resources/ui_resource_client.h" 30 #include "cc/resources/ui_resource_client.h"
30 #include "cc/scheduler/rate_limiter.h" 31 #include "cc/scheduler/rate_limiter.h"
31 #include "cc/trees/layer_tree_host_client.h" 32 #include "cc/trees/layer_tree_host_client.h"
32 #include "cc/trees/layer_tree_host_common.h" 33 #include "cc/trees/layer_tree_host_common.h"
33 #include "cc/trees/layer_tree_settings.h" 34 #include "cc/trees/layer_tree_settings.h"
34 #include "cc/trees/occlusion_tracker.h" 35 #include "cc/trees/occlusion_tracker.h"
35 #include "cc/trees/proxy.h" 36 #include "cc/trees/proxy.h"
36 #include "third_party/skia/include/core/SkColor.h" 37 #include "third_party/skia/include/core/SkColor.h"
(...skipping 17 matching lines...) Expand all
54 55
55 class AnimationRegistrar; 56 class AnimationRegistrar;
56 class HeadsUpDisplayLayer; 57 class HeadsUpDisplayLayer;
57 class Layer; 58 class Layer;
58 class LayerTreeHostImpl; 59 class LayerTreeHostImpl;
59 class LayerTreeHostImplClient; 60 class LayerTreeHostImplClient;
60 class PrioritizedResourceManager; 61 class PrioritizedResourceManager;
61 class PrioritizedResource; 62 class PrioritizedResource;
62 class Region; 63 class Region;
63 class RenderingStatsInstrumentation; 64 class RenderingStatsInstrumentation;
64 class ResourceProvider;
65 class ResourceUpdateQueue; 65 class ResourceUpdateQueue;
66 class TopControlsManager; 66 class TopControlsManager;
67 struct RenderingStats; 67 struct RenderingStats;
68 struct ScrollAndScaleSet; 68 struct ScrollAndScaleSet;
69 69
70 // Provides information on an Impl's rendering capabilities back to the 70 // Provides information on an Impl's rendering capabilities back to the
71 // LayerTreeHost. 71 // LayerTreeHost.
72 struct CC_EXPORT RendererCapabilities { 72 struct CC_EXPORT RendererCapabilities {
73 RendererCapabilities(); 73 RendererCapabilities();
74 ~RendererCapabilities(); 74 ~RendererCapabilities();
75 75
76 unsigned best_texture_format; 76 ResourceProvider::TextureFormat best_texture_format;
77 bool using_partial_swap; 77 bool using_partial_swap;
78 bool using_set_visibility; 78 bool using_set_visibility;
79 bool using_egl_image; 79 bool using_egl_image;
80 bool allow_partial_texture_updates; 80 bool allow_partial_texture_updates;
81 bool using_offscreen_context3d; 81 bool using_offscreen_context3d;
82 int max_texture_size; 82 int max_texture_size;
83 bool avoid_pow2_textures; 83 bool avoid_pow2_textures;
84 bool using_map_image; 84 bool using_map_image;
85 bool using_shared_memory_resources; 85 bool using_shared_memory_resources;
86 bool using_discard_framebuffer; 86 bool using_discard_framebuffer;
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 }; 417 };
418 LCDTextMetrics lcd_text_metrics_; 418 LCDTextMetrics lcd_text_metrics_;
419 int tree_id_; 419 int tree_id_;
420 420
421 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 421 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
422 }; 422 };
423 423
424 } // namespace cc 424 } // namespace cc
425 425
426 #endif // CC_TREES_LAYER_TREE_HOST_H_ 426 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698