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

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

Issue 2126083002: Remove fColor from PathRenderer DrawPathArgs struct (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Remove unnecessary GrPaint::setColor calls Created 4 years, 5 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/GrPathRenderer.h ('k') | src/gpu/GrSWMaskHelper.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 2012 Google Inc. 2 * Copyright 2012 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 GrSWMaskHelper_DEFINED 8 #ifndef GrSWMaskHelper_DEFINED
9 #define GrSWMaskHelper_DEFINED 9 #define GrSWMaskHelper_DEFINED
10 10
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 // GrSoftwarePathRenderer uses it to fulfill a drawPath call. 79 // GrSoftwarePathRenderer uses it to fulfill a drawPath call.
80 // It draws with "texture" as a path mask into "target" using "rect" as 80 // It draws with "texture" as a path mask into "target" using "rect" as
81 // geometry and the current drawState. The current drawState is altered to 81 // geometry and the current drawState. The current drawState is altered to
82 // accommodate the mask. 82 // accommodate the mask.
83 // Note that this method assumes that the GrPaint::kTotalStages slot in 83 // Note that this method assumes that the GrPaint::kTotalStages slot in
84 // the draw state can be used to hold the mask texture stage. 84 // the draw state can be used to hold the mask texture stage.
85 // This method is really only intended to be used with the 85 // This method is really only intended to be used with the
86 // output of DrawPathMaskToTexture. 86 // output of DrawPathMaskToTexture.
87 static void DrawToTargetWithShapeMask(GrTexture* texture, 87 static void DrawToTargetWithShapeMask(GrTexture* texture,
88 GrDrawContext*, 88 GrDrawContext*,
89 const GrPaint* paint, 89 const GrPaint& paint,
90 const GrUserStencilSettings* userStenc ilSettings, 90 const GrUserStencilSettings* userStenc ilSettings,
91 const GrClip&, 91 const GrClip&,
92 GrColor,
93 const SkMatrix& viewMatrix, 92 const SkMatrix& viewMatrix,
94 const SkIRect& rect); 93 const SkIRect& rect);
95 94
96 private: 95 private:
97 // Helper function to get a scratch texture suitable for capturing the 96 // Helper function to get a scratch texture suitable for capturing the
98 // result (i.e., right size & format) 97 // result (i.e., right size & format)
99 GrTexture* createTexture(); 98 GrTexture* createTexture();
100 99
101 GrTextureProvider* fTexProvider; 100 GrTextureProvider* fTexProvider;
102 SkMatrix fMatrix; 101 SkMatrix fMatrix;
103 SkAutoPixmapStorage fPixels; 102 SkAutoPixmapStorage fPixels;
104 SkDraw fDraw; 103 SkDraw fDraw;
105 SkRasterClip fRasterClip; 104 SkRasterClip fRasterClip;
106 105
107 typedef SkNoncopyable INHERITED; 106 typedef SkNoncopyable INHERITED;
108 }; 107 };
109 108
110 #endif // GrSWMaskHelper_DEFINED 109 #endif // GrSWMaskHelper_DEFINED
OLDNEW
« no previous file with comments | « src/gpu/GrPathRenderer.h ('k') | src/gpu/GrSWMaskHelper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698