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

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

Issue 1007593002: Define cc::RendererCapabilities in its own header, fix up includes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gyp Created 5 years, 9 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
« no previous file with comments | « cc/test/pixel_test.h ('k') | cc/trees/layer_tree_host.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 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 <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 13 matching lines...) Expand all
24 #include "cc/base/swap_promise.h" 24 #include "cc/base/swap_promise.h"
25 #include "cc/base/swap_promise_monitor.h" 25 #include "cc/base/swap_promise_monitor.h"
26 #include "cc/debug/micro_benchmark.h" 26 #include "cc/debug/micro_benchmark.h"
27 #include "cc/debug/micro_benchmark_controller.h" 27 #include "cc/debug/micro_benchmark_controller.h"
28 #include "cc/input/input_handler.h" 28 #include "cc/input/input_handler.h"
29 #include "cc/input/layer_selection_bound.h" 29 #include "cc/input/layer_selection_bound.h"
30 #include "cc/input/scrollbar.h" 30 #include "cc/input/scrollbar.h"
31 #include "cc/input/top_controls_state.h" 31 #include "cc/input/top_controls_state.h"
32 #include "cc/layers/layer_lists.h" 32 #include "cc/layers/layer_lists.h"
33 #include "cc/output/output_surface.h" 33 #include "cc/output/output_surface.h"
34 #include "cc/output/renderer_capabilities.h"
34 #include "cc/resources/resource_format.h" 35 #include "cc/resources/resource_format.h"
35 #include "cc/resources/scoped_ui_resource.h" 36 #include "cc/resources/scoped_ui_resource.h"
36 #include "cc/surfaces/surface_sequence.h" 37 #include "cc/surfaces/surface_sequence.h"
37 #include "cc/trees/layer_tree_host_client.h" 38 #include "cc/trees/layer_tree_host_client.h"
38 #include "cc/trees/layer_tree_host_common.h" 39 #include "cc/trees/layer_tree_host_common.h"
39 #include "cc/trees/layer_tree_settings.h" 40 #include "cc/trees/layer_tree_settings.h"
40 #include "cc/trees/proxy.h" 41 #include "cc/trees/proxy.h"
41 #include "third_party/skia/include/core/SkColor.h" 42 #include "third_party/skia/include/core/SkColor.h"
42 #include "ui/gfx/geometry/rect.h" 43 #include "ui/gfx/geometry/rect.h"
43 44
(...skipping 16 matching lines...) Expand all
60 class ResourceProvider; 61 class ResourceProvider;
61 class ResourceUpdateQueue; 62 class ResourceUpdateQueue;
62 class SharedBitmapManager; 63 class SharedBitmapManager;
63 class TopControlsManager; 64 class TopControlsManager;
64 class UIResourceRequest; 65 class UIResourceRequest;
65 struct PendingPageScaleAnimation; 66 struct PendingPageScaleAnimation;
66 struct RenderingStats; 67 struct RenderingStats;
67 struct ScrollAndScaleSet; 68 struct ScrollAndScaleSet;
68 enum class GpuRasterizationStatus; 69 enum class GpuRasterizationStatus;
69 70
70 // Provides information on an Impl's rendering capabilities back to the
71 // LayerTreeHost.
72 struct CC_EXPORT RendererCapabilities {
73 RendererCapabilities(ResourceFormat best_texture_format,
74 bool allow_partial_texture_updates,
75 int max_texture_size,
76 bool using_shared_memory_resources);
77
78 RendererCapabilities();
79 ~RendererCapabilities();
80
81 // Duplicate any modification to this list to RendererCapabilitiesImpl.
82 ResourceFormat best_texture_format;
83 bool allow_partial_texture_updates;
84 int max_texture_size;
85 bool using_shared_memory_resources;
86 };
87
88 class CC_EXPORT LayerTreeHost { 71 class CC_EXPORT LayerTreeHost {
89 public: 72 public:
90 // The SharedBitmapManager will be used on the compositor thread. 73 // The SharedBitmapManager will be used on the compositor thread.
91 static scoped_ptr<LayerTreeHost> CreateThreaded( 74 static scoped_ptr<LayerTreeHost> CreateThreaded(
92 LayerTreeHostClient* client, 75 LayerTreeHostClient* client,
93 SharedBitmapManager* shared_bitmap_manager, 76 SharedBitmapManager* shared_bitmap_manager,
94 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, 77 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager,
95 const LayerTreeSettings& settings, 78 const LayerTreeSettings& settings,
96 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, 79 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
97 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner, 80 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner,
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 446
464 uint32_t surface_id_namespace_; 447 uint32_t surface_id_namespace_;
465 uint32_t next_surface_sequence_; 448 uint32_t next_surface_sequence_;
466 449
467 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 450 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
468 }; 451 };
469 452
470 } // namespace cc 453 } // namespace cc
471 454
472 #endif // CC_TREES_LAYER_TREE_HOST_H_ 455 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW
« no previous file with comments | « cc/test/pixel_test.h ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698