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

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: Created 4 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
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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 this->initClassID<GrOverdrawXPFactory>(); 215 this->initClassID<GrOverdrawXPFactory>();
216 } 216 }
217 217
218 GrXferProcessor* onCreateXferProcessor(const GrCaps& caps, 218 GrXferProcessor* onCreateXferProcessor(const GrCaps& caps,
219 const GrPipelineOptimizations& optimi zations, 219 const GrPipelineOptimizations& optimi zations,
220 bool hasMixedSamples, 220 bool hasMixedSamples,
221 const DstTexture* dstTexture) const o verride { 221 const DstTexture* dstTexture) const o verride {
222 return new OverdrawXP(dstTexture, hasMixedSamples); 222 return new OverdrawXP(dstTexture, hasMixedSamples);
223 } 223 }
224 224
225 bool willReadDstColor(const GrCaps& caps, 225 bool onWillReadDstColor(const GrCaps& caps,
226 const GrPipelineOptimizations& optimizations, 226 const GrPipelineOptimizations& optimizations,
227 bool hasMixedSamples) const override { 227 bool hasMixedSamples) const override {
228 return true; 228 return true;
229 } 229 }
230 230
231 bool onIsEqual(const GrXPFactory& xpfBase) const override { return true; } 231 bool onIsEqual(const GrXPFactory& xpfBase) const override { return true; }
232 232
233 GR_DECLARE_XP_FACTORY_TEST; 233 GR_DECLARE_XP_FACTORY_TEST;
234 234
235 typedef GrXPFactory INHERITED; 235 typedef GrXPFactory INHERITED;
236 }; 236 };
237 237
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 314
315 SkFlattenable* SkOverdrawXfermode::CreateProc(SkReadBuffer& buffer) { 315 SkFlattenable* SkOverdrawXfermode::CreateProc(SkReadBuffer& buffer) {
316 return Create(); 316 return Create();
317 } 317 }
318 318
319 SkXfermode* SkOverdrawMode::Create() { return new SkOverdrawXfermode; } 319 SkXfermode* SkOverdrawMode::Create() { return new SkOverdrawXfermode; }
320 320
321 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkOverdrawMode) 321 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkOverdrawMode)
322 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkOverdrawXfermode) 322 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkOverdrawXfermode)
323 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END 323 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698