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

Side by Side Diff: src/gpu/GrDrawTarget.h

Issue 1275543005: Move some work from backend onClear to base class clear (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Pass references and rebase Created 5 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 | « src/gpu/GrCommandBuilder.cpp ('k') | src/gpu/GrDrawTarget.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2010 Google Inc. 2 * Copyright 2010 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef GrDrawTarget_DEFINED 8 #ifndef GrDrawTarget_DEFINED
9 #define GrDrawTarget_DEFINED 9 #define GrDrawTarget_DEFINED
10 10
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 virtual void onDrawPaths(const GrPathProcessor*, 264 virtual void onDrawPaths(const GrPathProcessor*,
265 const GrPathRange*, 265 const GrPathRange*,
266 const void* indices, 266 const void* indices,
267 PathIndexType, 267 PathIndexType,
268 const float transformValues[], 268 const float transformValues[],
269 PathTransformType, 269 PathTransformType,
270 int count, 270 int count,
271 const GrStencilSettings&, 271 const GrStencilSettings&,
272 const PipelineInfo&) = 0; 272 const PipelineInfo&) = 0;
273 273
274 virtual void onClear(const SkIRect* rect, GrColor color, bool canIgnoreRect, 274 virtual void onClear(const SkIRect& rect, GrColor color, GrRenderTarget* ren derTarget) = 0;
275 GrRenderTarget* renderTarget) = 0;
276 275
277 /** The subclass's copy surface implementation. It should assume that any cl ipping has already 276 /** The subclass's copy surface implementation. It should assume that any cl ipping has already
278 been performed on the rect and point and that the GrGpu supports the cop y. */ 277 been performed on the rect and point and that the GrGpu supports the cop y. */
279 virtual void onCopySurface(GrSurface* dst, 278 virtual void onCopySurface(GrSurface* dst,
280 GrSurface* src, 279 GrSurface* src,
281 const SkIRect& srcRect, 280 const SkIRect& srcRect,
282 const SkIPoint& dstPoint) = 0; 281 const SkIPoint& dstPoint) = 0;
283 282
284 // Check to see if this set of draw commands has been sent out 283 // Check to see if this set of draw commands has been sent out
285 virtual bool isIssued(uint32_t drawID) { return true; } 284 virtual bool isIssued(uint32_t drawID) { return true; }
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 bool setupClip(const GrPipelineBuilder&, 341 bool setupClip(const GrPipelineBuilder&,
343 GrPipelineBuilder::AutoRestoreFragmentProcessorState*, 342 GrPipelineBuilder::AutoRestoreFragmentProcessorState*,
344 GrPipelineBuilder::AutoRestoreStencil*, 343 GrPipelineBuilder::AutoRestoreStencil*,
345 GrScissorState* scissorState, 344 GrScissorState* scissorState,
346 const SkRect* devBounds) override; 345 const SkRect* devBounds) override;
347 346
348 typedef GrDrawTarget INHERITED; 347 typedef GrDrawTarget INHERITED;
349 }; 348 };
350 349
351 #endif 350 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrCommandBuilder.cpp ('k') | src/gpu/GrDrawTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698