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

Side by Side Diff: tests/GrPorterDuffTest.cpp

Issue 1483103003: Make onPrepareDraws const (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: merge Created 5 years 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
« no previous file with comments | « src/gpu/effects/GrDashingEffect.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/gpu/effects/GrDashingEffect.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698