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

Side by Side Diff: tests/RecordReplaceDrawTest.cpp

Issue 1885623002: Make more unit tests run on Vulkan (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 months 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
OLDNEW
1 /* 1 /*
2 * Copyright 2014 Google Inc. 2 * Copyright 2014 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 "Test.h" 8 #include "Test.h"
9 9
10 #if SK_SUPPORT_GPU 10 #if SK_SUPPORT_GPU
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 GrRecordReplaceDraw(pic.get(), &canvas, layerCache, SkMatrix::I(), nullptr/* callback*/); 134 GrRecordReplaceDraw(pic.get(), &canvas, layerCache, SkMatrix::I(), nullptr/* callback*/);
135 135
136 int numLayers = count_instances_of_type<SkRecords::SaveLayer>(rerecord); 136 int numLayers = count_instances_of_type<SkRecords::SaveLayer>(rerecord);
137 if (doReplace) { 137 if (doReplace) {
138 REPORTER_ASSERT(r, 0 == numLayers); 138 REPORTER_ASSERT(r, 0 == numLayers);
139 } else { 139 } else {
140 REPORTER_ASSERT(r, 1 == numLayers); 140 REPORTER_ASSERT(r, 1 == numLayers);
141 } 141 }
142 } 142 }
143 143
144 DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS(RecordReplaceDraw, r, ctxInfo) { 144 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(RecordReplaceDraw, r, ctxInfo) {
145 test_replacements(r, ctxInfo.fGrContext, true); 145 test_replacements(r, ctxInfo.fGrContext, true);
146 test_replacements(r, ctxInfo.fGrContext, false); 146 test_replacements(r, ctxInfo.fGrContext, false);
147 } 147 }
148 148
149 #endif 149 #endif
OLDNEW
« no previous file with comments | « tests/PremulAlphaRoundTripTest.cpp ('k') | tests/ResourceCacheTest.cpp » ('j') | tests/Test.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698