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

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: Rebase 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
« no previous file with comments | « cc/output/ca_layer_overlay.cc ('k') | cc/output/direct_renderer.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_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/output/ca_layer_overlay.h"
12 #include "cc/output/overlay_processor.h" 13 #include "cc/output/overlay_processor.h"
13 #include "cc/output/renderer.h" 14 #include "cc/output/renderer.h"
14 #include "cc/raster/task_graph_runner.h" 15 #include "cc/raster/task_graph_runner.h"
15 #include "cc/resources/resource_provider.h" 16 #include "cc/resources/resource_provider.h"
16 #include "cc/resources/scoped_resource.h" 17 #include "cc/resources/scoped_resource.h"
17 #include "ui/gfx/geometry/quad_f.h" 18 #include "ui/gfx/geometry/quad_f.h"
18 19
19 namespace cc { 20 namespace cc {
20 21
21 class DrawPolygon; 22 class DrawPolygon;
(...skipping 27 matching lines...) Expand all
49 gfx::Rect root_damage_rect; 50 gfx::Rect root_damage_rect;
50 gfx::Rect device_viewport_rect; 51 gfx::Rect device_viewport_rect;
51 gfx::Rect device_clip_rect; 52 gfx::Rect device_clip_rect;
52 53
53 gfx::Transform projection_matrix; 54 gfx::Transform projection_matrix;
54 gfx::Transform window_matrix; 55 gfx::Transform window_matrix;
55 56
56 bool disable_picture_quad_image_filtering; 57 bool disable_picture_quad_image_filtering;
57 58
58 OverlayCandidateList overlay_list; 59 OverlayCandidateList overlay_list;
60 CALayerOverlayList ca_layer_overlay_list;
59 }; 61 };
60 62
61 void SetEnlargePassTextureAmountForTesting(const gfx::Vector2d& amount); 63 void SetEnlargePassTextureAmountForTesting(const gfx::Vector2d& amount);
62 void DoDrawPolygon(const DrawPolygon& poly, 64 void DoDrawPolygon(const DrawPolygon& poly,
63 DrawingFrame* frame, 65 DrawingFrame* frame,
64 const gfx::Rect& render_pass_scissor, 66 const gfx::Rect& render_pass_scissor,
65 bool use_render_pass_scissor); 67 bool use_render_pass_scissor);
66 68
67 protected: 69 protected:
68 enum SurfaceInitializationMode { 70 enum SurfaceInitializationMode {
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 // stores the values for the current render pass; in between draws, they 153 // stores the values for the current render pass; in between draws, they
152 // retain the values for the root render pass of the last draw. 154 // retain the values for the root render pass of the last draw.
153 gfx::Rect current_draw_rect_; 155 gfx::Rect current_draw_rect_;
154 gfx::Rect current_viewport_rect_; 156 gfx::Rect current_viewport_rect_;
155 gfx::Size current_surface_size_; 157 gfx::Size current_surface_size_;
156 gfx::Rect current_window_space_viewport_; 158 gfx::Rect current_window_space_viewport_;
157 159
158 private: 160 private:
159 gfx::Vector2d enlarge_pass_texture_amount_; 161 gfx::Vector2d enlarge_pass_texture_amount_;
160 162
163 // Regions that must be drawn in the next frame because they were represented
164 // as CALayers in the current frame.
165 gfx::Rect next_root_damage_rect_;
166
161 DISALLOW_COPY_AND_ASSIGN(DirectRenderer); 167 DISALLOW_COPY_AND_ASSIGN(DirectRenderer);
162 }; 168 };
163 169
164 } // namespace cc 170 } // namespace cc
165 171
166 #endif // CC_OUTPUT_DIRECT_RENDERER_H_ 172 #endif // CC_OUTPUT_DIRECT_RENDERER_H_
OLDNEW
« no previous file with comments | « cc/output/ca_layer_overlay.cc ('k') | cc/output/direct_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698