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

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

Issue 1316233002: Style Change: NULL->nullptr (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-27 (Thursday) 10:25:06 EDT Created 5 years, 3 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/GrDrawContext.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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 const float transformValues[], 107 const float transformValues[],
108 PathTransformType transformType, 108 PathTransformType transformType,
109 int count, 109 int count,
110 GrPathRendering::FillType fill); 110 GrPathRendering::FillType fill);
111 111
112 /** 112 /**
113 * Helper function for drawing rects. 113 * Helper function for drawing rects.
114 * 114 *
115 * @param rect the rect to draw 115 * @param rect the rect to draw
116 * @param localRect optional rect that specifies local coords to map onto 116 * @param localRect optional rect that specifies local coords to map onto
117 * rect. If NULL then rect serves as the local coords. 117 * rect. If nullptr then rect serves as the local coords.
118 * @param localMatrix Optional local matrix. The local coordinates are speci fied by localRect, 118 * @param localMatrix Optional local matrix. The local coordinates are speci fied by localRect,
119 * or if it is NULL by rect. This matrix applies to the c oordinate implied by 119 * or if it is nullptr by rect. This matrix applies to th e coordinate implied by
120 * that rectangle before it is input to GrCoordTransforms that read local 120 * that rectangle before it is input to GrCoordTransforms that read local
121 * coordinates 121 * coordinates
122 */ 122 */
123 void drawNonAARect(const GrPipelineBuilder& pipelineBuilder, 123 void drawNonAARect(const GrPipelineBuilder& pipelineBuilder,
124 GrColor color, 124 GrColor color,
125 const SkMatrix& viewMatrix, 125 const SkMatrix& viewMatrix,
126 const SkRect& rect); 126 const SkRect& rect);
127 127
128 void drawNonAARect(const GrPipelineBuilder& pipelineBuilder, 128 void drawNonAARect(const GrPipelineBuilder& pipelineBuilder,
129 GrColor color, 129 GrColor color,
(...skipping 16 matching lines...) Expand all
146 } 146 }
147 147
148 void drawAARect(const GrPipelineBuilder& pipelineBuilder, 148 void drawAARect(const GrPipelineBuilder& pipelineBuilder,
149 GrColor color, 149 GrColor color,
150 const SkMatrix& viewMatrix, 150 const SkMatrix& viewMatrix,
151 const SkRect& rect, 151 const SkRect& rect,
152 const SkRect& devRect); 152 const SkRect& devRect);
153 153
154 /** 154 /**
155 * Clear the passed in render target. Ignores the GrPipelineBuilder and clip . Clears the whole 155 * Clear the passed in render target. Ignores the GrPipelineBuilder and clip . Clears the whole
156 * thing if rect is NULL, otherwise just the rect. If canIgnoreRect is set t hen the entire 156 * thing if rect is nullptr, otherwise just the rect. If canIgnoreRect is se t then the entire
157 * render target can be optionally cleared. 157 * render target can be optionally cleared.
158 */ 158 */
159 void clear(const SkIRect* rect, 159 void clear(const SkIRect* rect,
160 GrColor color, 160 GrColor color,
161 bool canIgnoreRect, 161 bool canIgnoreRect,
162 GrRenderTarget* renderTarget); 162 GrRenderTarget* renderTarget);
163 163
164 /** Discards the contents render target. */ 164 /** Discards the contents render target. */
165 void discard(GrRenderTarget*); 165 void discard(GrRenderTarget*);
166 166
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 bool setupClip(const GrPipelineBuilder&, 319 bool setupClip(const GrPipelineBuilder&,
320 GrPipelineBuilder::AutoRestoreFragmentProcessorState*, 320 GrPipelineBuilder::AutoRestoreFragmentProcessorState*,
321 GrPipelineBuilder::AutoRestoreStencil*, 321 GrPipelineBuilder::AutoRestoreStencil*,
322 GrScissorState* scissorState, 322 GrScissorState* scissorState,
323 const SkRect* devBounds) override; 323 const SkRect* devBounds) override;
324 324
325 typedef GrDrawTarget INHERITED; 325 typedef GrDrawTarget INHERITED;
326 }; 326 };
327 327
328 #endif 328 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrDrawContext.cpp ('k') | src/gpu/GrDrawTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698