| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |