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

Side by Side Diff: tests/ImageNewShaderTest.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 "SkCanvas.h" 8 #include "SkCanvas.h"
9 #include "SkImage.h" 9 #include "SkImage.h"
10 #include "SkShader.h" 10 #include "SkShader.h"
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 132
133 void rasterToGpu(skiatest::Reporter* reporter, GrContext* context) { 133 void rasterToGpu(skiatest::Reporter* reporter, GrContext* context) {
134 SkImageInfo info = SkImageInfo::MakeN32Premul(5, 5); 134 SkImageInfo info = SkImageInfo::MakeN32Premul(5, 5);
135 135
136 auto sourceSurface(SkSurface::MakeRaster(info)); 136 auto sourceSurface(SkSurface::MakeRaster(info));
137 auto destinationSurface(SkSurface::MakeRenderTarget(context, SkBudgeted::kNo , info)); 137 auto destinationSurface(SkSurface::MakeRenderTarget(context, SkBudgeted::kNo , info));
138 138
139 runShaderTest(reporter, sourceSurface.get(), destinationSurface.get(), info) ; 139 runShaderTest(reporter, sourceSurface.get(), destinationSurface.get(), info) ;
140 } 140 }
141 141
142 DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS(ImageNewShader_GPU, reporter, ctxInfo) { 142 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(ImageNewShader_GPU, reporter, ctxInfo) {
143 // GPU -> GPU 143 // GPU -> GPU
144 gpuToGpu(reporter, ctxInfo.fGrContext); 144 gpuToGpu(reporter, ctxInfo.fGrContext);
145 145
146 // GPU -> RASTER 146 // GPU -> RASTER
147 gpuToRaster(reporter, ctxInfo.fGrContext); 147 gpuToRaster(reporter, ctxInfo.fGrContext);
148 148
149 // RASTER -> GPU 149 // RASTER -> GPU
150 rasterToGpu(reporter, ctxInfo.fGrContext); 150 rasterToGpu(reporter, ctxInfo.fGrContext);
151 } 151 }
152 152
153 #endif 153 #endif
OLDNEW
« no previous file with comments | « tests/ImageFilterTest.cpp ('k') | tests/ImageTest.cpp » ('j') | tests/Test.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698