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

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

Issue 858343002: Rename GrOptDrawState to GrPipeline and GrDrawState to GrPipelineBuilder (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: more nits Created 5 years, 11 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/GrPipelineBuilder.cpp ('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
11 #include "GrColor.h" 11 #include "GrColor.h"
12 #include "GrDrawState.h" 12 #include "GrPipelineBuilder.h"
13 #include "SkBitmap.h" 13 #include "SkBitmap.h"
14 #include "SkDraw.h" 14 #include "SkDraw.h"
15 #include "SkMatrix.h" 15 #include "SkMatrix.h"
16 #include "SkRasterClip.h" 16 #include "SkRasterClip.h"
17 #include "SkRegion.h" 17 #include "SkRegion.h"
18 #include "SkTextureCompressor.h" 18 #include "SkTextureCompressor.h"
19 #include "SkTypes.h" 19 #include "SkTypes.h"
20 20
21 class GrContext; 21 class GrContext;
22 class GrTexture; 22 class GrTexture;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 // GrSoftwarePathRenderer uses it to fulfill a drawPath call. 85 // GrSoftwarePathRenderer uses it to fulfill a drawPath call.
86 // It draws with "texture" as a path mask into "target" using "rect" as 86 // It draws with "texture" as a path mask into "target" using "rect" as
87 // geometry and the current drawState. The current drawState is altered to 87 // geometry and the current drawState. The current drawState is altered to
88 // accommodate the mask. 88 // accommodate the mask.
89 // Note that this method assumes that the GrPaint::kTotalStages slot in 89 // Note that this method assumes that the GrPaint::kTotalStages slot in
90 // the draw state can be used to hold the mask texture stage. 90 // the draw state can be used to hold the mask texture stage.
91 // This method is really only intended to be used with the 91 // This method is really only intended to be used with the
92 // output of DrawPathMaskToTexture. 92 // output of DrawPathMaskToTexture.
93 static void DrawToTargetWithPathMask(GrTexture* texture, 93 static void DrawToTargetWithPathMask(GrTexture* texture,
94 GrDrawTarget* target, 94 GrDrawTarget* target,
95 GrDrawState* drawState, 95 GrPipelineBuilder* pipelineBuilder,
96 GrColor, 96 GrColor,
97 const SkMatrix& viewMatrix, 97 const SkMatrix& viewMatrix,
98 const SkIRect& rect); 98 const SkIRect& rect);
99 99
100 private: 100 private:
101 // Helper function to get a scratch texture suitable for capturing the 101 // Helper function to get a scratch texture suitable for capturing the
102 // result (i.e., right size & format) 102 // result (i.e., right size & format)
103 GrTexture* createTexture(); 103 GrTexture* createTexture();
104 104
105 GrContext* fContext; 105 GrContext* fContext;
(...skipping 26 matching lines...) Expand all
132 const void *data, size_t rowbytes); 132 const void *data, size_t rowbytes);
133 133
134 // Compresses the bitmap stored in fBM and sends the compressed data 134 // Compresses the bitmap stored in fBM and sends the compressed data
135 // to the GPU to be stored in 'texture' using sendTextureData. 135 // to the GPU to be stored in 'texture' using sendTextureData.
136 void compressTextureData(GrTexture *texture, const GrSurfaceDesc& desc); 136 void compressTextureData(GrTexture *texture, const GrSurfaceDesc& desc);
137 137
138 typedef SkNoncopyable INHERITED; 138 typedef SkNoncopyable INHERITED;
139 }; 139 };
140 140
141 #endif // GrSWMaskHelper_DEFINED 141 #endif // GrSWMaskHelper_DEFINED
OLDNEW
« no previous file with comments | « src/gpu/GrPipelineBuilder.cpp ('k') | src/gpu/GrSWMaskHelper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698