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

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

Issue 16952006: Replace fixed-size array of effect stages in GrDrawState with two appendable arrays, one for color,… (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: fix comments Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « src/gpu/GrDrawState.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 /* 2 /*
3 * Copyright 2010 Google Inc. 3 * Copyright 2010 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #ifndef GrDrawTarget_DEFINED 10 #ifndef GrDrawTarget_DEFINED
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 const GrRect* localRect, 348 const GrRect* localRect,
349 const SkMatrix* localMatrix) { 349 const SkMatrix* localMatrix) {
350 AutoGeometryPush agp(this); 350 AutoGeometryPush agp(this);
351 this->onDrawRect(rect, matrix, localRect, localMatrix); 351 this->onDrawRect(rect, matrix, localRect, localMatrix);
352 } 352 }
353 353
354 /** 354 /**
355 * Helper for drawRect when the caller doesn't need separate local rects or matrices. 355 * Helper for drawRect when the caller doesn't need separate local rects or matrices.
356 */ 356 */
357 void drawSimpleRect(const GrRect& rect, const SkMatrix* matrix = NULL) { 357 void drawSimpleRect(const GrRect& rect, const SkMatrix* matrix = NULL) {
358 drawRect(rect, matrix, NULL, NULL); 358 this->drawRect(rect, matrix, NULL, NULL);
359 } 359 }
360 void drawSimpleRect(const GrIRect& irect, const SkMatrix* matrix = NULL) { 360 void drawSimpleRect(const GrIRect& irect, const SkMatrix* matrix = NULL) {
361 SkRect rect = SkRect::MakeFromIRect(irect); 361 SkRect rect = SkRect::MakeFromIRect(irect);
362 this->drawRect(rect, matrix, NULL, NULL); 362 this->drawRect(rect, matrix, NULL, NULL);
363 } 363 }
364 364
365 /** 365 /**
366 * This call is used to draw multiple instances of some geometry with a 366 * This call is used to draw multiple instances of some geometry with a
367 * given number of vertices (V) and indices (I) per-instance. The indices in 367 * given number of vertices (V) and indices (I) per-instance. The indices in
368 * the index source must have the form i[k+I] == i[k] + V. Also, all indices 368 * the index source must have the form i[k+I] == i[k] + V. Also, all indices
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
846 const GrClipData* fClip; 846 const GrClipData* fClip;
847 GrDrawState* fDrawState; 847 GrDrawState* fDrawState;
848 GrDrawState fDefaultDraw State; 848 GrDrawState fDefaultDraw State;
849 // The context owns us, not vice-versa, so this ptr is not ref'ed by DrawTar get. 849 // The context owns us, not vice-versa, so this ptr is not ref'ed by DrawTar get.
850 GrContext* fContext; 850 GrContext* fContext;
851 851
852 typedef GrRefCnt INHERITED; 852 typedef GrRefCnt INHERITED;
853 }; 853 };
854 854
855 #endif 855 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrDrawState.cpp ('k') | src/gpu/GrDrawTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698