| 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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  222         this->initClassID<GrOverdrawXPFactory>(); |  222         this->initClassID<GrOverdrawXPFactory>(); | 
|  223     } |  223     } | 
|  224  |  224  | 
|  225     GrXferProcessor* onCreateXferProcessor(const GrCaps& caps, |  225     GrXferProcessor* onCreateXferProcessor(const GrCaps& caps, | 
|  226                                            const GrPipelineOptimizations& optimi
     zations, |  226                                            const GrPipelineOptimizations& optimi
     zations, | 
|  227                                            bool hasMixedSamples, |  227                                            bool hasMixedSamples, | 
|  228                                            const DstTexture* dstTexture) const o
     verride { |  228                                            const DstTexture* dstTexture) const o
     verride { | 
|  229         return new OverdrawXP(dstTexture, hasMixedSamples); |  229         return new OverdrawXP(dstTexture, hasMixedSamples); | 
|  230     } |  230     } | 
|  231  |  231  | 
|  232     bool onWillReadDstColor(const GrCaps& caps, |  232     bool onWillReadDstColor(const GrCaps&, const GrPipelineOptimizations&) const
      override { | 
|  233                             const GrPipelineOptimizations& optimizations, |  | 
|  234                             bool hasMixedSamples) const override { |  | 
|  235         return true; |  233         return true; | 
|  236     } |  234     } | 
|  237  |  235  | 
|  238     bool onIsEqual(const GrXPFactory& xpfBase) const override { return true; } |  236     bool onIsEqual(const GrXPFactory& xpfBase) const override { return true; } | 
|  239  |  237  | 
|  240     GR_DECLARE_XP_FACTORY_TEST; |  238     GR_DECLARE_XP_FACTORY_TEST; | 
|  241  |  239  | 
|  242     typedef GrXPFactory INHERITED; |  240     typedef GrXPFactory INHERITED; | 
|  243 }; |  241 }; | 
|  244  |  242  | 
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  315  |  313  | 
|  316 sk_sp<SkFlattenable> SkOverdrawXfermode::CreateProc(SkReadBuffer& buffer) { |  314 sk_sp<SkFlattenable> SkOverdrawXfermode::CreateProc(SkReadBuffer& buffer) { | 
|  317     return sk_sp<SkFlattenable>(Create()); |  315     return sk_sp<SkFlattenable>(Create()); | 
|  318 } |  316 } | 
|  319  |  317  | 
|  320 sk_sp<SkXfermode> SkOverdrawMode::Make() { return sk_make_sp<SkOverdrawXfermode>
     (); } |  318 sk_sp<SkXfermode> SkOverdrawMode::Make() { return sk_make_sp<SkOverdrawXfermode>
     (); } | 
|  321  |  319  | 
|  322 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkOverdrawMode) |  320 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkOverdrawMode) | 
|  323     SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkOverdrawXfermode) |  321     SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkOverdrawXfermode) | 
|  324 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END |  322 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END | 
| OLD | NEW |