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

Side by Side Diff: tests/CopySurfaceTest.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 2016 Google Inc. 2 * Copyright 2016 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 <initializer_list> 8 #include <initializer_list>
9 #include "Test.h" 9 #include "Test.h"
10 10
11 #if SK_SUPPORT_GPU 11 #if SK_SUPPORT_GPU
12 #include "GrContext.h" 12 #include "GrContext.h"
13 #include "GrTexture.h" 13 #include "GrTexture.h"
14 #include "GrTextureProvider.h" 14 #include "GrTextureProvider.h"
15 15
16 #include "SkUtils.h" 16 #include "SkUtils.h"
17 17
18 DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS(CopySurface, reporter, ctxInfo) { 18 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(CopySurface, reporter, ctxInfo) {
19 GrContext* context = ctxInfo.fGrContext; 19 GrContext* context = ctxInfo.fGrContext;
20 static const int kW = 10; 20 static const int kW = 10;
21 static const int kH = 10; 21 static const int kH = 10;
22 static const size_t kRowBytes = sizeof(uint32_t) * kW; 22 static const size_t kRowBytes = sizeof(uint32_t) * kW;
23 23
24 GrSurfaceDesc baseDesc; 24 GrSurfaceDesc baseDesc;
25 baseDesc.fConfig = kRGBA_8888_GrPixelConfig; 25 baseDesc.fConfig = kRGBA_8888_GrPixelConfig;
26 baseDesc.fWidth = kW; 26 baseDesc.fWidth = kW;
27 baseDesc.fHeight = kH; 27 baseDesc.fHeight = kH;
28 28
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 } 155 }
156 } 156 }
157 } 157 }
158 } 158 }
159 } 159 }
160 } 160 }
161 } 161 }
162 } 162 }
163 } 163 }
164 #endif 164 #endif
OLDNEW
« no previous file with comments | « tests/ClipBoundsTest.cpp ('k') | tests/FloatingPointTextureTest.cpp » ('j') | tests/Test.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698