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

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

Issue 1289673004: GrCopySurfaceBatch (Closed) Base URL: https://skia.googlesource.com/skia.git@cs
Patch Set: 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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 virtual void onDrawPaths(const GrPathProcessor*, 255 virtual void onDrawPaths(const GrPathProcessor*,
256 const GrPathRange*, 256 const GrPathRange*,
257 const void* indices, 257 const void* indices,
258 PathIndexType, 258 PathIndexType,
259 const float transformValues[], 259 const float transformValues[],
260 PathTransformType, 260 PathTransformType,
261 int count, 261 int count,
262 const GrStencilSettings&, 262 const GrStencilSettings&,
263 const PipelineInfo&) = 0; 263 const PipelineInfo&) = 0;
264 264
265 /** The subclass's copy surface implementation. It should assume that any cl ipping has already
266 been performed on the rect and point and that the GrGpu supports the cop y. */
267 virtual void onCopySurface(GrSurface* dst,
268 GrSurface* src,
269 const SkIRect& srcRect,
270 const SkIPoint& dstPoint) = 0;
271
272 // Check to see if this set of draw commands has been sent out 265 // Check to see if this set of draw commands has been sent out
273 virtual bool isIssued(uint32_t drawID) { return true; } 266 virtual bool isIssued(uint32_t drawID) { return true; }
274 void getPathStencilSettingsForFilltype(GrPathRendering::FillType, 267 void getPathStencilSettingsForFilltype(GrPathRendering::FillType,
275 const GrStencilAttachment*, 268 const GrStencilAttachment*,
276 GrStencilSettings*); 269 GrStencilSettings*);
277 virtual GrClipMaskManager* clipMaskManager() = 0; 270 virtual GrClipMaskManager* clipMaskManager() = 0;
278 virtual bool setupClip(const GrPipelineBuilder&, 271 virtual bool setupClip(const GrPipelineBuilder&,
279 GrPipelineBuilder::AutoRestoreFragmentProcessorState* , 272 GrPipelineBuilder::AutoRestoreFragmentProcessorState* ,
280 GrPipelineBuilder::AutoRestoreStencil*, 273 GrPipelineBuilder::AutoRestoreStencil*,
281 GrScissorState*, 274 GrScissorState*,
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 bool setupClip(const GrPipelineBuilder&, 323 bool setupClip(const GrPipelineBuilder&,
331 GrPipelineBuilder::AutoRestoreFragmentProcessorState*, 324 GrPipelineBuilder::AutoRestoreFragmentProcessorState*,
332 GrPipelineBuilder::AutoRestoreStencil*, 325 GrPipelineBuilder::AutoRestoreStencil*,
333 GrScissorState* scissorState, 326 GrScissorState* scissorState,
334 const SkRect* devBounds) override; 327 const SkRect* devBounds) override;
335 328
336 typedef GrDrawTarget INHERITED; 329 typedef GrDrawTarget INHERITED;
337 }; 330 };
338 331
339 #endif 332 #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