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

Side by Side Diff: tests/ImageNewShaderTest.cpp

Issue 1966013002: Turn ContextInfos returned by GrContextFactory into structs. (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Address comment Created 4 years, 7 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
« no previous file with comments | « tests/ImageIsOpaqueTest.cpp ('k') | tests/ImageTest.cpp » ('j') | 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 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_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.grContext());
145 145
146 // GPU -> RASTER 146 // GPU -> RASTER
147 gpuToRaster(reporter, ctxInfo.fGrContext); 147 gpuToRaster(reporter, ctxInfo.grContext());
148 148
149 // RASTER -> GPU 149 // RASTER -> GPU
150 rasterToGpu(reporter, ctxInfo.fGrContext); 150 rasterToGpu(reporter, ctxInfo.grContext());
151 } 151 }
152 152
153 #endif 153 #endif
OLDNEW
« no previous file with comments | « tests/ImageIsOpaqueTest.cpp ('k') | tests/ImageTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698