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

Side by Side Diff: cc/output/direct_renderer.h

Issue 1430813002: cc: Fork OverlayCandidate to CALayerOverlay (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master1
Patch Set: Fix init in tests Created 5 years, 1 month 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 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 "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/containers/scoped_ptr_hash_map.h" 10 #include "base/containers/scoped_ptr_hash_map.h"
11 #include "cc/base/cc_export.h" 11 #include "cc/base/cc_export.h"
12 #include "cc/base/scoped_ptr_deque.h" 12 #include "cc/base/scoped_ptr_deque.h"
13 #include "cc/output/ca_layer_overlay.h"
13 #include "cc/output/overlay_processor.h" 14 #include "cc/output/overlay_processor.h"
14 #include "cc/output/renderer.h" 15 #include "cc/output/renderer.h"
15 #include "cc/raster/task_graph_runner.h" 16 #include "cc/raster/task_graph_runner.h"
16 #include "cc/resources/resource_provider.h" 17 #include "cc/resources/resource_provider.h"
17 #include "cc/resources/scoped_resource.h" 18 #include "cc/resources/scoped_resource.h"
18 #include "ui/gfx/geometry/quad_f.h" 19 #include "ui/gfx/geometry/quad_f.h"
19 20
20 namespace cc { 21 namespace cc {
21 22
22 class DrawPolygon; 23 class DrawPolygon;
(...skipping 27 matching lines...) Expand all
50 gfx::Rect root_damage_rect; 51 gfx::Rect root_damage_rect;
51 gfx::Rect device_viewport_rect; 52 gfx::Rect device_viewport_rect;
52 gfx::Rect device_clip_rect; 53 gfx::Rect device_clip_rect;
53 54
54 gfx::Transform projection_matrix; 55 gfx::Transform projection_matrix;
55 gfx::Transform window_matrix; 56 gfx::Transform window_matrix;
56 57
57 bool disable_picture_quad_image_filtering; 58 bool disable_picture_quad_image_filtering;
58 59
59 OverlayCandidateList overlay_list; 60 OverlayCandidateList overlay_list;
61 CALayerOverlayList ca_layer_overlay_list;
60 }; 62 };
61 63
62 void SetEnlargePassTextureAmountForTesting(const gfx::Vector2d& amount); 64 void SetEnlargePassTextureAmountForTesting(const gfx::Vector2d& amount);
63 void DoDrawPolygon(const DrawPolygon& poly, 65 void DoDrawPolygon(const DrawPolygon& poly,
64 DrawingFrame* frame, 66 DrawingFrame* frame,
65 const gfx::Rect& render_pass_scissor, 67 const gfx::Rect& render_pass_scissor,
66 bool use_render_pass_scissor); 68 bool use_render_pass_scissor);
67 69
68 protected: 70 protected:
69 enum SurfaceInitializationMode { 71 enum SurfaceInitializationMode {
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 // stores the values for the current render pass; in between draws, they 154 // stores the values for the current render pass; in between draws, they
153 // retain the values for the root render pass of the last draw. 155 // retain the values for the root render pass of the last draw.
154 gfx::Rect current_draw_rect_; 156 gfx::Rect current_draw_rect_;
155 gfx::Rect current_viewport_rect_; 157 gfx::Rect current_viewport_rect_;
156 gfx::Size current_surface_size_; 158 gfx::Size current_surface_size_;
157 gfx::Rect current_window_space_viewport_; 159 gfx::Rect current_window_space_viewport_;
158 160
159 private: 161 private:
160 gfx::Vector2d enlarge_pass_texture_amount_; 162 gfx::Vector2d enlarge_pass_texture_amount_;
161 163
164 // Regions that must be drawn in the next frame because they were represented
165 // as CALayers in the current frame.
166 gfx::Rect next_root_damage_rect_;
167
162 DISALLOW_COPY_AND_ASSIGN(DirectRenderer); 168 DISALLOW_COPY_AND_ASSIGN(DirectRenderer);
163 }; 169 };
164 170
165 } // namespace cc 171 } // namespace cc
166 172
167 #endif // CC_OUTPUT_DIRECT_RENDERER_H_ 173 #endif // CC_OUTPUT_DIRECT_RENDERER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698