| 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 1100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1111 GrBatchToXPOverrides* overrides) const
override { | 1111 GrBatchToXPOverrides* overrides) const
override { |
| 1112 color->setKnownFourComponents(GrColorPackRGBA(123, 45, 67, 221)); | 1112 color->setKnownFourComponents(GrColorPackRGBA(123, 45, 67, 221)); |
| 1113 coverage->setUnknownFourComponents(); | 1113 coverage->setUnknownFourComponents(); |
| 1114 coverage->setUsingLCDCoverage(); | 1114 coverage->setUsingLCDCoverage(); |
| 1115 overrides->fUsePLSDstRead = false; | 1115 overrides->fUsePLSDstRead = false; |
| 1116 } | 1116 } |
| 1117 | 1117 |
| 1118 const char* name() const override { return "Test LCD Text Batch"; } | 1118 const char* name() const override { return "Test LCD Text Batch"; } |
| 1119 void initBatchTracker(const GrXPOverridesForBatch&) override {} | 1119 void initBatchTracker(const GrXPOverridesForBatch&) override {} |
| 1120 bool onCombineIfPossible(GrBatch*, const GrCaps&) override { return fal
se; } | 1120 bool onCombineIfPossible(GrBatch*, const GrCaps&) override { return fal
se; } |
| 1121 void onPrepareDraws(Target*) override {}; | 1121 void onPrepareDraws(Target*) const override {}; |
| 1122 | 1122 |
| 1123 typedef GrVertexBatch INHERITED; | 1123 typedef GrVertexBatch INHERITED; |
| 1124 } testLCDCoverageBatch; | 1124 } testLCDCoverageBatch; |
| 1125 | 1125 |
| 1126 GrPipelineOptimizations opts; | 1126 GrPipelineOptimizations opts; |
| 1127 testLCDCoverageBatch.getPipelineOptimizations(&opts); | 1127 testLCDCoverageBatch.getPipelineOptimizations(&opts); |
| 1128 GrProcOptInfo colorPOI = opts.fColorPOI; | 1128 GrProcOptInfo colorPOI = opts.fColorPOI; |
| 1129 GrProcOptInfo covPOI = opts.fCoveragePOI; | 1129 GrProcOptInfo covPOI = opts.fCoveragePOI; |
| 1130 | 1130 |
| 1131 SkASSERT(kRGBA_GrColorComponentFlags == colorPOI.validFlags()); | 1131 SkASSERT(kRGBA_GrColorComponentFlags == colorPOI.validFlags()); |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1221 xp->getOptimizations(optimizations, false, 0, caps); | 1221 xp->getOptimizations(optimizations, false, 0, caps); |
| 1222 TEST_ASSERT(!xp->hasSecondaryOutput()); | 1222 TEST_ASSERT(!xp->hasSecondaryOutput()); |
| 1223 } | 1223 } |
| 1224 } | 1224 } |
| 1225 } | 1225 } |
| 1226 ctx->getGpu()->deleteTestingOnlyBackendTexture(backendTex); | 1226 ctx->getGpu()->deleteTestingOnlyBackendTexture(backendTex); |
| 1227 } | 1227 } |
| 1228 | 1228 |
| 1229 #endif | 1229 #endif |
| 1230 | 1230 |
| OLD | NEW |