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

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

Issue 1889453002: Tweak distance field path renderer behavior in gamma-correct mode (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 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 | « no previous file | src/gpu/batches/GrAADistanceFieldPathRenderer.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 2010 Google Inc. 2 * Copyright 2010 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 GrDrawTarget_DEFINED 8 #ifndef GrDrawTarget_DEFINED
9 #define GrDrawTarget_DEFINED 9 #define GrDrawTarget_DEFINED
10 10
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 GrResourceProvider* resourceProvider() const { return fDrawTarget->fReso urceProvider; } 167 GrResourceProvider* resourceProvider() const { return fDrawTarget->fReso urceProvider; }
168 GrDrawTarget* fDrawTarget; 168 GrDrawTarget* fDrawTarget;
169 friend class GrClipMaskManager; 169 friend class GrClipMaskManager;
170 }; 170 };
171 171
172 const CMMAccess cmmAccess() { return CMMAccess(this); } 172 const CMMAccess cmmAccess() { return CMMAccess(this); }
173 173
174 GrAuditTrail* getAuditTrail() const { return fAuditTrail; } 174 GrAuditTrail* getAuditTrail() const { return fAuditTrail; }
175 175
176 private: 176 private:
177 friend class GrAADistanceFieldPathRenderer; // for fRenderTarget (to query s RGB)
jvanverth1 2016/04/13 13:45:39 This seems a little squirrely to me. Does it make
Brian Osman 2016/04/13 13:48:44 Yes - I nearly added a comment before sending this
177 friend class GrDrawingManager; // for resetFlag & TopoSortTraits 178 friend class GrDrawingManager; // for resetFlag & TopoSortTraits
178 179
179 enum Flags { 180 enum Flags {
180 kClosed_Flag = 0x01, //!< This drawTarget can't accept any more bat ches 181 kClosed_Flag = 0x01, //!< This drawTarget can't accept any more bat ches
181 182
182 kWasOutput_Flag = 0x02, //!< Flag for topological sorting 183 kWasOutput_Flag = 0x02, //!< Flag for topological sorting
183 kTempMark_Flag = 0x04, //!< Flag for topological sorting 184 kTempMark_Flag = 0x04, //!< Flag for topological sorting
184 }; 185 };
185 186
186 void setFlag(uint32_t flag) { 187 void setFlag(uint32_t flag) {
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 GrRenderTarget* fRenderTarget; 260 GrRenderTarget* fRenderTarget;
260 261
261 bool fDrawBatchBounds; 262 bool fDrawBatchBounds;
262 int fMaxBatchLookback; 263 int fMaxBatchLookback;
263 int fMaxBatchLookahead; 264 int fMaxBatchLookahead;
264 265
265 typedef SkRefCnt INHERITED; 266 typedef SkRefCnt INHERITED;
266 }; 267 };
267 268
268 #endif 269 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/batches/GrAADistanceFieldPathRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698