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

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

Issue 1966903004: Remove clip from GrPipelineBuilder (Closed) Base URL: https://skia.googlesource.com/skia.git@fix2_nvpr
Patch Set: Created 4 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
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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 // It draws with "texture" as a path mask into "target" using "rect" as 87 // It draws with "texture" as a path mask into "target" using "rect" as
88 // geometry and the current drawState. The current drawState is altered to 88 // geometry and the current drawState. The current drawState is altered to
89 // accommodate the mask. 89 // accommodate the mask.
90 // Note that this method assumes that the GrPaint::kTotalStages slot in 90 // Note that this method assumes that the GrPaint::kTotalStages slot in
91 // the draw state can be used to hold the mask texture stage. 91 // the draw state can be used to hold the mask texture stage.
92 // This method is really only intended to be used with the 92 // This method is really only intended to be used with the
93 // output of DrawPathMaskToTexture. 93 // output of DrawPathMaskToTexture.
94 static void DrawToTargetWithPathMask(GrTexture* texture, 94 static void DrawToTargetWithPathMask(GrTexture* texture,
95 GrDrawTarget* target, 95 GrDrawTarget* target,
96 GrPipelineBuilder* pipelineBuilder, 96 GrPipelineBuilder* pipelineBuilder,
97 const GrClip&,
97 GrColor, 98 GrColor,
98 const SkMatrix& viewMatrix, 99 const SkMatrix& viewMatrix,
99 const SkIRect& rect); 100 const SkIRect& rect);
100 101
101 private: 102 private:
102 // Helper function to get a scratch texture suitable for capturing the 103 // Helper function to get a scratch texture suitable for capturing the
103 // result (i.e., right size & format) 104 // result (i.e., right size & format)
104 GrTexture* createTexture(); 105 GrTexture* createTexture();
105 106
106 GrContext* fContext; 107 GrContext* fContext;
(...skipping 26 matching lines...) Expand all
133 const void *data, size_t rowbytes); 134 const void *data, size_t rowbytes);
134 135
135 // Compresses the bitmap stored in fBM and sends the compressed data 136 // Compresses the bitmap stored in fBM and sends the compressed data
136 // to the GPU to be stored in 'texture' using sendTextureData. 137 // to the GPU to be stored in 'texture' using sendTextureData.
137 void compressTextureData(GrTexture *texture, const GrSurfaceDesc& desc); 138 void compressTextureData(GrTexture *texture, const GrSurfaceDesc& desc);
138 139
139 typedef SkNoncopyable INHERITED; 140 typedef SkNoncopyable INHERITED;
140 }; 141 };
141 142
142 #endif // GrSWMaskHelper_DEFINED 143 #endif // GrSWMaskHelper_DEFINED
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698