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_OUTPUT_DIRECT_RENDERER_H_ | 5 #ifndef CC_OUTPUT_DIRECT_RENDERER_H_ |
6 #define CC_OUTPUT_DIRECT_RENDERER_H_ | 6 #define CC_OUTPUT_DIRECT_RENDERER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <unordered_map> | 9 #include <unordered_map> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "cc/base/cc_export.h" | 14 #include "cc/base/cc_export.h" |
15 #include "cc/output/ca_layer_overlay.h" | 15 #include "cc/output/ca_layer_overlay.h" |
| 16 #include "cc/output/dc_layer_overlay.h" |
16 #include "cc/output/filter_operations.h" | 17 #include "cc/output/filter_operations.h" |
17 #include "cc/output/overlay_processor.h" | 18 #include "cc/output/overlay_processor.h" |
18 #include "cc/quads/tile_draw_quad.h" | 19 #include "cc/quads/tile_draw_quad.h" |
19 #include "cc/resources/resource_provider.h" | 20 #include "cc/resources/resource_provider.h" |
20 #include "gpu/command_buffer/common/texture_in_use_response.h" | 21 #include "gpu/command_buffer/common/texture_in_use_response.h" |
21 #include "ui/events/latency_info.h" | 22 #include "ui/events/latency_info.h" |
22 #include "ui/gfx/geometry/quad_f.h" | 23 #include "ui/gfx/geometry/quad_f.h" |
23 #include "ui/gfx/geometry/rect.h" | 24 #include "ui/gfx/geometry/rect.h" |
24 | 25 |
25 namespace gfx { | 26 namespace gfx { |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 | 83 |
83 gfx::Rect root_damage_rect; | 84 gfx::Rect root_damage_rect; |
84 std::vector<gfx::Rect> root_content_bounds; | 85 std::vector<gfx::Rect> root_content_bounds; |
85 gfx::Size device_viewport_size; | 86 gfx::Size device_viewport_size; |
86 | 87 |
87 gfx::Transform projection_matrix; | 88 gfx::Transform projection_matrix; |
88 gfx::Transform window_matrix; | 89 gfx::Transform window_matrix; |
89 | 90 |
90 OverlayCandidateList overlay_list; | 91 OverlayCandidateList overlay_list; |
91 CALayerOverlayList ca_layer_overlay_list; | 92 CALayerOverlayList ca_layer_overlay_list; |
| 93 DCLayerOverlayList dc_layer_overlay_list; |
92 }; | 94 }; |
93 | 95 |
94 protected: | 96 protected: |
95 friend class BspWalkActionDrawPolygon; | 97 friend class BspWalkActionDrawPolygon; |
96 | 98 |
97 enum SurfaceInitializationMode { | 99 enum SurfaceInitializationMode { |
98 SURFACE_INITIALIZATION_MODE_PRESERVE, | 100 SURFACE_INITIALIZATION_MODE_PRESERVE, |
99 SURFACE_INITIALIZATION_MODE_SCISSORED_CLEAR, | 101 SURFACE_INITIALIZATION_MODE_SCISSORED_CLEAR, |
100 SURFACE_INITIALIZATION_MODE_FULL_SURFACE_CLEAR, | 102 SURFACE_INITIALIZATION_MODE_FULL_SURFACE_CLEAR, |
101 }; | 103 }; |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 gfx::ColorSpace reshape_device_color_space_; | 237 gfx::ColorSpace reshape_device_color_space_; |
236 bool reshape_has_alpha_ = false; | 238 bool reshape_has_alpha_ = false; |
237 bool reshape_use_stencil_ = false; | 239 bool reshape_use_stencil_ = false; |
238 | 240 |
239 DISALLOW_COPY_AND_ASSIGN(DirectRenderer); | 241 DISALLOW_COPY_AND_ASSIGN(DirectRenderer); |
240 }; | 242 }; |
241 | 243 |
242 } // namespace cc | 244 } // namespace cc |
243 | 245 |
244 #endif // CC_OUTPUT_DIRECT_RENDERER_H_ | 246 #endif // CC_OUTPUT_DIRECT_RENDERER_H_ |
OLD | NEW |