| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 "SkXfermode.h" | 8 #include "SkXfermode.h" |
| 9 #include "Test.h" | 9 #include "Test.h" |
| 10 | 10 |
| (...skipping 880 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 891 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); | 891 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); |
| 892 break; | 892 break; |
| 893 default: | 893 default: |
| 894 ERRORF(reporter, "Invalid xfermode."); | 894 ERRORF(reporter, "Invalid xfermode."); |
| 895 break; | 895 break; |
| 896 } | 896 } |
| 897 } | 897 } |
| 898 } | 898 } |
| 899 | 899 |
| 900 static void test_lcd_coverage(skiatest::Reporter* reporter, const GrCaps& caps)
{ | 900 static void test_lcd_coverage(skiatest::Reporter* reporter, const GrCaps& caps)
{ |
| 901 class : public GrBatch { | 901 class : public GrVertexBatch { |
| 902 void getInvariantOutputColor(GrInitInvariantOutput* out) const override
{ | 902 void getInvariantOutputColor(GrInitInvariantOutput* out) const override
{ |
| 903 out->setKnownFourComponents(GrColorPackRGBA(123, 45, 67, 221)); | 903 out->setKnownFourComponents(GrColorPackRGBA(123, 45, 67, 221)); |
| 904 } | 904 } |
| 905 | 905 |
| 906 void getInvariantOutputCoverage(GrInitInvariantOutput* out) const overri
de { | 906 void getInvariantOutputCoverage(GrInitInvariantOutput* out) const overri
de { |
| 907 out->setUnknownFourComponents(); | 907 out->setUnknownFourComponents(); |
| 908 out->setUsingLCDCoverage(); | 908 out->setUsingLCDCoverage(); |
| 909 } | 909 } |
| 910 | 910 |
| 911 const char* name() const override { return "Test LCD Text Batch"; } | 911 const char* name() const override { return "Test LCD Text Batch"; } |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1008 TEST_ASSERT(!xp->hasSecondaryOutput()); | 1008 TEST_ASSERT(!xp->hasSecondaryOutput()); |
| 1009 xp->getOptimizations(colorPOI, covPOI, false, 0, caps); | 1009 xp->getOptimizations(colorPOI, covPOI, false, 0, caps); |
| 1010 TEST_ASSERT(!xp->hasSecondaryOutput()); | 1010 TEST_ASSERT(!xp->hasSecondaryOutput()); |
| 1011 } | 1011 } |
| 1012 } | 1012 } |
| 1013 } | 1013 } |
| 1014 } | 1014 } |
| 1015 | 1015 |
| 1016 #endif | 1016 #endif |
| 1017 | 1017 |
| OLD | NEW |