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

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

Issue 817853002: Remove localcoordchange functions off paint (Closed) Base URL: https://skia.googlesource.com/skia.git@local-matrix-on-gp
Patch Set: changing ignores Created 5 years, 12 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/GrDrawState.cpp ('k') | src/gpu/GrInOrderDrawBuffer.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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 int count, 296 int count,
297 GrPathRendering::FillType fill); 297 GrPathRendering::FillType fill);
298 298
299 /** 299 /**
300 * Helper function for drawing rects. It performs a geometry src push and po p 300 * Helper function for drawing rects. It performs a geometry src push and po p
301 * and thus will finalize any reserved geometry. 301 * and thus will finalize any reserved geometry.
302 * 302 *
303 * @param rect the rect to draw 303 * @param rect the rect to draw
304 * @param localRect optional rect that specifies local coords to map onto 304 * @param localRect optional rect that specifies local coords to map onto
305 * rect. If NULL then rect serves as the local coords. 305 * rect. If NULL then rect serves as the local coords.
306 * @param localMatrix optional matrix applied to localRect. If 306 * @param localMatrix Optional local matrix. The local coordinates are speci fied by localRect,
307 * srcRect is non-NULL and srcMatrix is non-NULL 307 * or if it is NULL by rect. This matrix applies to the c oordinate implied by
308 * then srcRect will be transformed by srcMatrix. 308 * that rectangle before it is input to GrCoordTransforms that read local
309 * srcMatrix can be NULL when no srcMatrix is desired. 309 * coordinates
310 */ 310 */
311 void drawRect(GrDrawState* ds, 311 void drawRect(GrDrawState* ds,
312 GrColor color, 312 GrColor color,
313 const SkRect& rect, 313 const SkRect& rect,
314 const SkRect* localRect, 314 const SkRect* localRect,
315 const SkMatrix* localMatrix) { 315 const SkMatrix* localMatrix) {
316 AutoGeometryPush agp(this); 316 AutoGeometryPush agp(this);
317 this->onDrawRect(ds, color, rect, localRect, localMatrix); 317 this->onDrawRect(ds, color, rect, localRect, localMatrix);
318 } 318 }
319 319
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
849 virtual bool setupClip(const SkRect* devBounds, 849 virtual bool setupClip(const SkRect* devBounds,
850 GrDrawState::AutoRestoreEffects* are, 850 GrDrawState::AutoRestoreEffects* are,
851 GrDrawState::AutoRestoreStencil* ars, 851 GrDrawState::AutoRestoreStencil* ars,
852 GrDrawState*, 852 GrDrawState*,
853 GrScissorState* scissorState) SK_OVERRIDE; 853 GrScissorState* scissorState) SK_OVERRIDE;
854 854
855 typedef GrDrawTarget INHERITED; 855 typedef GrDrawTarget INHERITED;
856 }; 856 };
857 857
858 #endif 858 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrDrawState.cpp ('k') | src/gpu/GrInOrderDrawBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698