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

Side by Side Diff: src/utils/debugger/SkOverdrawMode.cpp

Issue 1541903002: added support for PLS path rendering (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix for ASAN failure Created 4 years, 10 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/glsl/GrGLSLXferProcessor.h ('k') | tests/GrPorterDuffTest.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 2016 Google Inc. 2 * Copyright 2016 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 #include "SkColorPriv.h" 8 #include "SkColorPriv.h"
9 #include "SkOverdrawMode.h" 9 #include "SkOverdrawMode.h"
10 #include "SkString.h" 10 #include "SkString.h"
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 this->initClassID<GrOverdrawXPFactory>(); 226 this->initClassID<GrOverdrawXPFactory>();
227 } 227 }
228 228
229 GrXferProcessor* onCreateXferProcessor(const GrCaps& caps, 229 GrXferProcessor* onCreateXferProcessor(const GrCaps& caps,
230 const GrPipelineOptimizations& optimi zations, 230 const GrPipelineOptimizations& optimi zations,
231 bool hasMixedSamples, 231 bool hasMixedSamples,
232 const DstTexture* dstTexture) const o verride { 232 const DstTexture* dstTexture) const o verride {
233 return new OverdrawXP(dstTexture, hasMixedSamples); 233 return new OverdrawXP(dstTexture, hasMixedSamples);
234 } 234 }
235 235
236 bool willReadDstColor(const GrCaps& caps, 236 bool onWillReadDstColor(const GrCaps& caps,
237 const GrPipelineOptimizations& optimizations, 237 const GrPipelineOptimizations& optimizations,
238 bool hasMixedSamples) const override { 238 bool hasMixedSamples) const override {
239 return true; 239 return true;
240 } 240 }
241 241
242 bool onIsEqual(const GrXPFactory& xpfBase) const override { return true; } 242 bool onIsEqual(const GrXPFactory& xpfBase) const override { return true; }
243 243
244 GR_DECLARE_XP_FACTORY_TEST; 244 GR_DECLARE_XP_FACTORY_TEST;
245 245
246 typedef GrXPFactory INHERITED; 246 typedef GrXPFactory INHERITED;
247 }; 247 };
248 248
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 325
326 SkFlattenable* SkOverdrawXfermode::CreateProc(SkReadBuffer& buffer) { 326 SkFlattenable* SkOverdrawXfermode::CreateProc(SkReadBuffer& buffer) {
327 return Create(); 327 return Create();
328 } 328 }
329 329
330 SkXfermode* SkOverdrawMode::Create() { return new SkOverdrawXfermode; } 330 SkXfermode* SkOverdrawMode::Create() { return new SkOverdrawXfermode; }
331 331
332 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkOverdrawMode) 332 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkOverdrawMode)
333 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkOverdrawXfermode) 333 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkOverdrawXfermode)
334 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END 334 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END
OLDNEW
« no previous file with comments | « src/gpu/glsl/GrGLSLXferProcessor.h ('k') | tests/GrPorterDuffTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698