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

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

Issue 1407883004: Remove GrPipelineBuilder from getPathRenderer call (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 1 month 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 #ifndef GrClipMaskManager_DEFINED 7 #ifndef GrClipMaskManager_DEFINED
8 #define GrClipMaskManager_DEFINED 8 #define GrClipMaskManager_DEFINED
9 9
10 #include "GrPipelineBuilder.h" 10 #include "GrPipelineBuilder.h"
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 const SkIRect& clipSpaceIBounds); 115 const SkIRect& clipSpaceIBounds);
116 116
117 // Similar to createAlphaClipMask but it rasterizes in SW and uploads to the result texture. 117 // Similar to createAlphaClipMask but it rasterizes in SW and uploads to the result texture.
118 GrTexture* createSoftwareClipMask(int32_t elementsGenID, 118 GrTexture* createSoftwareClipMask(int32_t elementsGenID,
119 GrReducedClip::InitialState initialState, 119 GrReducedClip::InitialState initialState,
120 const GrReducedClip::ElementList& elements , 120 const GrReducedClip::ElementList& elements ,
121 const SkVector& clipToMaskOffset, 121 const SkVector& clipToMaskOffset,
122 const SkIRect& clipSpaceIBounds); 122 const SkIRect& clipSpaceIBounds);
123 123
124 bool useSWOnlyPath(const GrPipelineBuilder&, 124 bool useSWOnlyPath(const GrPipelineBuilder&,
125 const SkVector& clipToMaskOffset, 125 const GrRenderTarget* rt,
126 const GrReducedClip::ElementList& elements); 126 const SkVector& clipToMaskOffset,
127 const GrReducedClip::ElementList& elements);
127 128
128 // Draws a clip element into the target alpha mask. The caller should have a lready setup the 129 // Draws a clip element into the target alpha mask. The caller should have a lready setup the
129 // desired blend operation. Optionally if the caller already selected a path renderer it can 130 // desired blend operation. Optionally if the caller already selected a path renderer it can
130 // be passed. Otherwise the function will select one if the element is a pat h. 131 // be passed. Otherwise the function will select one if the element is a pat h.
131 bool drawElement(GrPipelineBuilder*, 132 bool drawElement(GrPipelineBuilder*,
132 const SkMatrix& viewMatrix, 133 const SkMatrix& viewMatrix,
133 GrTexture* target, 134 GrTexture* target,
134 const SkClipStack::Element*, 135 const SkClipStack::Element*,
135 GrPathRenderer* pr = nullptr); 136 GrPathRenderer* pr = nullptr);
136 137
(...skipping 24 matching lines...) Expand all
161 GrTexture* createCachedMask(int width, int height, const GrUniqueKey& key, b ool renderTarget); 162 GrTexture* createCachedMask(int width, int height, const GrUniqueKey& key, b ool renderTarget);
162 163
163 static const int kMaxAnalyticElements = 4; 164 static const int kMaxAnalyticElements = 4;
164 165
165 GrDrawTarget* fDrawTarget; // This is our owning draw target. 166 GrDrawTarget* fDrawTarget; // This is our owning draw target.
166 StencilClipMode fClipMode; 167 StencilClipMode fClipMode;
167 168
168 typedef SkNoncopyable INHERITED; 169 typedef SkNoncopyable INHERITED;
169 }; 170 };
170 #endif // GrClipMaskManager_DEFINED 171 #endif // GrClipMaskManager_DEFINED
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698