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

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

Issue 2203033005: Remove references to DrawingFrame from RenderPassDrawQuad drawing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@temp58_continue_rpdq_refactor
Patch Set: Rebase. Created 4 years, 4 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 | « no previous file | 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 <vector> 9 #include <vector>
10 10
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 gfx::Rect GetBackdropBoundingBoxForRenderPassQuad( 180 gfx::Rect GetBackdropBoundingBoxForRenderPassQuad(
181 DrawingFrame* frame, 181 DrawingFrame* frame,
182 const RenderPassDrawQuad* quad, 182 const RenderPassDrawQuad* quad,
183 const gfx::Transform& contents_device_transform, 183 const gfx::Transform& contents_device_transform,
184 const gfx::QuadF* clip_region, 184 const gfx::QuadF* clip_region,
185 bool use_aa); 185 bool use_aa);
186 std::unique_ptr<ScopedResource> GetBackdropTexture( 186 std::unique_ptr<ScopedResource> GetBackdropTexture(
187 const gfx::Rect& bounding_rect); 187 const gfx::Rect& bounding_rect);
188 188
189 static bool ShouldApplyBackgroundFilters(const RenderPassDrawQuad* quad); 189 static bool ShouldApplyBackgroundFilters(const RenderPassDrawQuad* quad);
190 sk_sp<SkImage> ApplyBackgroundFilters(DrawingFrame* frame, 190 sk_sp<SkImage> ApplyBackgroundFilters(const RenderPassDrawQuad* quad,
191 const RenderPassDrawQuad* quad,
192 ScopedResource* background_texture, 191 ScopedResource* background_texture,
193 const gfx::RectF& rect); 192 const gfx::RectF& rect);
194 193
195 const TileDrawQuad* CanPassBeDrawnDirectly(const RenderPass* pass) override; 194 const TileDrawQuad* CanPassBeDrawnDirectly(const RenderPass* pass) override;
196 195
197 void DrawRenderPassQuad(DrawingFrame* frame, 196 void DrawRenderPassQuad(DrawingFrame* frame,
198 const RenderPassDrawQuad* quadi, 197 const RenderPassDrawQuad* quadi,
199 const gfx::QuadF* clip_region); 198 const gfx::QuadF* clip_region);
200 void DrawRenderPassQuadInternal(DrawRenderPassDrawQuadParams* params); 199 void DrawRenderPassQuadInternal(DrawRenderPassDrawQuadParams* params);
201 void DrawSolidColorQuad(const DrawingFrame* frame, 200 void DrawSolidColorQuad(const DrawingFrame* frame,
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 const gfx::QuadF* clip_region); 235 const gfx::QuadF* clip_region);
237 236
238 void SetShaderOpacity(float opacity, int alpha_location); 237 void SetShaderOpacity(float opacity, int alpha_location);
239 void SetShaderQuadF(const gfx::QuadF& quad, int quad_location); 238 void SetShaderQuadF(const gfx::QuadF& quad, int quad_location);
240 void DrawQuadGeometryClippedByQuadF(const DrawingFrame* frame, 239 void DrawQuadGeometryClippedByQuadF(const DrawingFrame* frame,
241 const gfx::Transform& draw_transform, 240 const gfx::Transform& draw_transform,
242 const gfx::RectF& quad_rect, 241 const gfx::RectF& quad_rect,
243 const gfx::QuadF& clipping_region_quad, 242 const gfx::QuadF& clipping_region_quad,
244 int matrix_location, 243 int matrix_location,
245 const float uv[8]); 244 const float uv[8]);
246 void DrawQuadGeometry(const DrawingFrame* frame, 245 void DrawQuadGeometry(const gfx::Transform& projection_matrix,
247 const gfx::Transform& draw_transform, 246 const gfx::Transform& draw_transform,
248 const gfx::RectF& quad_rect, 247 const gfx::RectF& quad_rect,
249 int matrix_location); 248 int matrix_location);
250 void SetUseProgram(unsigned program); 249 void SetUseProgram(unsigned program);
251 250
252 bool MakeContextCurrent(); 251 bool MakeContextCurrent();
253 252
254 void InitializeSharedObjects(); 253 void InitializeSharedObjects();
255 void CleanupSharedObjects(); 254 void CleanupSharedObjects();
256 255
257 typedef base::Callback<void(std::unique_ptr<CopyOutputRequest> copy_request, 256 typedef base::Callback<void(std::unique_ptr<CopyOutputRequest> copy_request,
258 bool success)> 257 bool success)>
259 AsyncGetFramebufferPixelsCleanupCallback; 258 AsyncGetFramebufferPixelsCleanupCallback;
260 void FinishedReadback(unsigned source_buffer, 259 void FinishedReadback(unsigned source_buffer,
261 unsigned query, 260 unsigned query,
262 const gfx::Size& size); 261 const gfx::Size& size);
263 262
264 void ReinitializeGLState(); 263 void ReinitializeGLState();
265 void RestoreGLState(); 264 void RestoreGLState();
266 void RestoreFramebuffer(DrawingFrame* frame);
267 265
268 void DiscardBackbuffer() override; 266 void DiscardBackbuffer() override;
269 void EnsureBackbuffer() override; 267 void EnsureBackbuffer() override;
270 void EnforceMemoryPolicy(); 268 void EnforceMemoryPolicy();
271 269
272 void ScheduleCALayers(DrawingFrame* frame); 270 void ScheduleCALayers(DrawingFrame* frame);
273 void ScheduleOverlays(DrawingFrame* frame); 271 void ScheduleOverlays(DrawingFrame* frame);
274 272
275 // Copies the contents of the render pass to an overlay resource, returned in 273 // Copies the contents of the render pass to an overlay resource, returned in
276 // |resource|. The resource is allocated from |overlay_resource_pool_|. 274 // |resource|. The resource is allocated from |overlay_resource_pool_|.
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
539 // overlay resource. This means the GLRenderer needs its own ResourcePool. 537 // overlay resource. This means the GLRenderer needs its own ResourcePool.
540 std::unique_ptr<ResourcePool> overlay_resource_pool_; 538 std::unique_ptr<ResourcePool> overlay_resource_pool_;
541 539
542 BoundGeometry bound_geometry_; 540 BoundGeometry bound_geometry_;
543 DISALLOW_COPY_AND_ASSIGN(GLRenderer); 541 DISALLOW_COPY_AND_ASSIGN(GLRenderer);
544 }; 542 };
545 543
546 } // namespace cc 544 } // namespace cc
547 545
548 #endif // CC_OUTPUT_GL_RENDERER_H_ 546 #endif // CC_OUTPUT_GL_RENDERER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/output/gl_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698