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

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

Issue 2934963002: [wip/exp] cc: Measure the amount of overdraw.
Patch Set: . Created 3 years, 6 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 | « ash/test/ash_test_helper.cc ('k') | cc/output/gl_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 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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_GL_RENDERER_H_ 5 #ifndef CC_OUTPUT_GL_RENDERER_H_
6 #define CC_OUTPUT_GL_RENDERER_H_ 6 #define CC_OUTPUT_GL_RENDERER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <unordered_map> 9 #include <unordered_map>
10 #include <vector> 10 #include <vector>
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 const FilterOperations* background_filters); 173 const FilterOperations* background_filters);
174 sk_sp<SkImage> ApplyBackgroundFilters( 174 sk_sp<SkImage> ApplyBackgroundFilters(
175 const RenderPassDrawQuad* quad, 175 const RenderPassDrawQuad* quad,
176 const FilterOperations& background_filters, 176 const FilterOperations& background_filters,
177 ScopedResource* background_texture, 177 ScopedResource* background_texture,
178 const gfx::RectF& rect, 178 const gfx::RectF& rect,
179 const gfx::RectF& unclipped_rect); 179 const gfx::RectF& unclipped_rect);
180 180
181 const TileDrawQuad* CanPassBeDrawnDirectly(const RenderPass* pass) override; 181 const TileDrawQuad* CanPassBeDrawnDirectly(const RenderPass* pass) override;
182 182
183 void DrawRenderPassQuad(const RenderPassDrawQuad* quadi, 183 bool DrawRenderPassQuad(const RenderPassDrawQuad* quadi,
184 const gfx::QuadF* clip_region); 184 const gfx::QuadF* clip_region);
185 void DrawRenderPassQuadInternal(DrawRenderPassDrawQuadParams* params); 185 bool DrawRenderPassQuadInternal(DrawRenderPassDrawQuadParams* params);
186 void DrawSolidColorQuad(const SolidColorDrawQuad* quad, 186 bool DrawSolidColorQuad(const SolidColorDrawQuad* quad,
187 const gfx::QuadF* clip_region); 187 const gfx::QuadF* clip_region);
188 void DrawStreamVideoQuad(const StreamVideoDrawQuad* quad, 188 bool DrawStreamVideoQuad(const StreamVideoDrawQuad* quad,
189 const gfx::QuadF* clip_region); 189 const gfx::QuadF* clip_region);
190 void DrawTextureQuad(const TextureDrawQuad* quad, 190 void DrawTextureQuad(const TextureDrawQuad* quad,
191 const gfx::QuadF* clip_region); 191 const gfx::QuadF* clip_region);
192 void EnqueueTextureQuad(const TextureDrawQuad* quad, 192 bool EnqueueTextureQuad(const TextureDrawQuad* quad,
193 const gfx::QuadF* clip_region); 193 const gfx::QuadF* clip_region);
194 void FlushTextureQuadCache(BoundGeometry flush_binding); 194 void FlushTextureQuadCache(BoundGeometry flush_binding);
195 void DrawTileQuad(const TileDrawQuad* quad, const gfx::QuadF* clip_region); 195 bool DrawTileQuad(const TileDrawQuad* quad, const gfx::QuadF* clip_region);
196 void DrawContentQuad(const ContentDrawQuadBase* quad, 196 bool DrawContentQuad(const ContentDrawQuadBase* quad,
197 ResourceId resource_id, 197 ResourceId resource_id,
198 const gfx::QuadF* clip_region); 198 const gfx::QuadF* clip_region);
199 void DrawContentQuadAA(const ContentDrawQuadBase* quad, 199 bool DrawContentQuadAA(const ContentDrawQuadBase* quad,
200 ResourceId resource_id, 200 ResourceId resource_id,
201 const gfx::Transform& device_transform, 201 const gfx::Transform& device_transform,
202 const gfx::QuadF& aa_quad, 202 const gfx::QuadF& aa_quad,
203 const gfx::QuadF* clip_region); 203 const gfx::QuadF* clip_region);
204 void DrawContentQuadNoAA(const ContentDrawQuadBase* quad, 204 bool DrawContentQuadNoAA(const ContentDrawQuadBase* quad,
205 ResourceId resource_id, 205 ResourceId resource_id,
206 const gfx::QuadF* clip_region); 206 const gfx::QuadF* clip_region);
207 void DrawYUVVideoQuad(const YUVVideoDrawQuad* quad, 207 bool DrawYUVVideoQuad(const YUVVideoDrawQuad* quad,
208 const gfx::QuadF* clip_region); 208 const gfx::QuadF* clip_region);
209 209
210 void SetShaderOpacity(const DrawQuad* quad); 210 void SetShaderOpacity(const DrawQuad* quad);
211 void SetShaderQuadF(const gfx::QuadF& quad); 211 void SetShaderQuadF(const gfx::QuadF& quad);
212 void SetShaderMatrix(const gfx::Transform& transform); 212 void SetShaderMatrix(const gfx::Transform& transform);
213 void SetShaderColor(SkColor color, float opacity); 213 void SetShaderColor(SkColor color, float opacity);
214 void DrawQuadGeometryClippedByQuadF(const gfx::Transform& draw_transform, 214 void DrawQuadGeometryClippedByQuadF(const gfx::Transform& draw_transform,
215 const gfx::RectF& quad_rect, 215 const gfx::RectF& quad_rect,
216 const gfx::QuadF& clipping_region_quad, 216 const gfx::QuadF& clipping_region_quad,
217 const float uv[8]); 217 const float uv[8]);
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 // not being used as part of a render pass, setting it here forces 357 // not being used as part of a render pass, setting it here forces
358 // FlippedFramebuffer to return |true|. 358 // FlippedFramebuffer to return |true|.
359 bool force_drawing_frame_framebuffer_unflipped_ = false; 359 bool force_drawing_frame_framebuffer_unflipped_ = false;
360 360
361 BoundGeometry bound_geometry_; 361 BoundGeometry bound_geometry_;
362 ColorLUTCache color_lut_cache_; 362 ColorLUTCache color_lut_cache_;
363 363
364 unsigned offscreen_stencil_renderbuffer_id_ = 0; 364 unsigned offscreen_stencil_renderbuffer_id_ = 0;
365 gfx::Size offscreen_stencil_renderbuffer_size_; 365 gfx::Size offscreen_stencil_renderbuffer_size_;
366 366
367 size_t area_drawn_ = 0;
368
367 base::WeakPtrFactory<GLRenderer> weak_ptr_factory_; 369 base::WeakPtrFactory<GLRenderer> weak_ptr_factory_;
368 370
369 DISALLOW_COPY_AND_ASSIGN(GLRenderer); 371 DISALLOW_COPY_AND_ASSIGN(GLRenderer);
370 }; 372 };
371 373
372 } // namespace cc 374 } // namespace cc
373 375
374 #endif // CC_OUTPUT_GL_RENDERER_H_ 376 #endif // CC_OUTPUT_GL_RENDERER_H_
OLDNEW
« no previous file with comments | « ash/test/ash_test_helper.cc ('k') | cc/output/gl_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698