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

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

Issue 1121463002: Move bounds to GrBatch (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: tweak Created 5 years, 7 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/GrDefaultPathRenderer.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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 * This plays any queued up draws to its GrGpu target. It also resets this o bject (i.e. flushing 61 * This plays any queued up draws to its GrGpu target. It also resets this o bject (i.e. flushing
62 * is destructive). 62 * is destructive).
63 */ 63 */
64 void flush(); 64 void flush();
65 65
66 /** 66 /**
67 * Gets the capabilities of the draw target. 67 * Gets the capabilities of the draw target.
68 */ 68 */
69 const GrDrawTargetCaps* caps() const { return fCaps.get(); } 69 const GrDrawTargetCaps* caps() const { return fCaps.get(); }
70 70
71 // TODO devbounds should live on the batch 71 void drawBatch(GrPipelineBuilder*, GrBatch*);
72 void drawBatch(GrPipelineBuilder*, GrBatch*, const SkRect* devBounds = NULL) ;
73 72
74 /** 73 /**
75 * Draws path into the stencil buffer. The fill must be either even/odd or 74 * Draws path into the stencil buffer. The fill must be either even/odd or
76 * winding (not inverse or hairline). It will respect the HW antialias flag 75 * winding (not inverse or hairline). It will respect the HW antialias flag
77 * on the GrPipelineBuilder (if possible in the 3D API). Note, we will neve r have an inverse 76 * on the GrPipelineBuilder (if possible in the 3D API). Note, we will neve r have an inverse
78 * fill with stencil path 77 * fill with stencil path
79 */ 78 */
80 void stencilPath(GrPipelineBuilder*, const GrPathProcessor*, const GrPath*, 79 void stencilPath(GrPipelineBuilder*, const GrPathProcessor*, const GrPath*,
81 GrPathRendering::FillType); 80 GrPathRendering::FillType);
82 81
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 virtual bool setupClip(GrPipelineBuilder*, 477 virtual bool setupClip(GrPipelineBuilder*,
479 GrPipelineBuilder::AutoRestoreFragmentProcessors*, 478 GrPipelineBuilder::AutoRestoreFragmentProcessors*,
480 GrPipelineBuilder::AutoRestoreStencil*, 479 GrPipelineBuilder::AutoRestoreStencil*,
481 GrScissorState* scissorState, 480 GrScissorState* scissorState,
482 const SkRect* devBounds) override; 481 const SkRect* devBounds) override;
483 482
484 typedef GrDrawTarget INHERITED; 483 typedef GrDrawTarget INHERITED;
485 }; 484 };
486 485
487 #endif 486 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrDefaultPathRenderer.cpp ('k') | src/gpu/GrDrawTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698