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

Side by Side Diff: tests/ReadWriteAlphaTest.cpp

Issue 138563004: Move macros from TestClassDef.h to Test.h (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: upload Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « tests/ReadPixelsTest.cpp ('k') | tests/Reader32Test.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 2012 Google Inc. 2 * Copyright 2012 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 // This test is specific to the GPU backend. 8 // This test is specific to the GPU backend.
9 #if SK_SUPPORT_GPU && !defined(SK_BUILD_FOR_ANDROID) 9 #if SK_SUPPORT_GPU && !defined(SK_BUILD_FOR_ANDROID)
10 10
11 #include "GrContextFactory.h" 11 #include "GrContextFactory.h"
12 #include "SkGpuDevice.h" 12 #include "SkGpuDevice.h"
13 #include "Test.h" 13 #include "Test.h"
14 #include "TestClassDef.h"
15 14
16 static const int X_SIZE = 12; 15 static const int X_SIZE = 12;
17 static const int Y_SIZE = 12; 16 static const int Y_SIZE = 12;
18 17
19 DEF_GPUTEST(ReadWriteAlpha, reporter, factory) { 18 DEF_GPUTEST(ReadWriteAlpha, reporter, factory) {
20 for (int type = 0; type < GrContextFactory::kLastGLContextType; ++type) { 19 for (int type = 0; type < GrContextFactory::kLastGLContextType; ++type) {
21 GrContextFactory::GLContextType glType = static_cast<GrContextFactory::G LContextType>(type); 20 GrContextFactory::GLContextType glType = static_cast<GrContextFactory::G LContextType>(type);
22 if (!GrContextFactory::IsRenderingGLContext(glType)) { 21 if (!GrContextFactory::IsRenderingGLContext(glType)) {
23 continue; 22 continue;
24 } 23 }
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 match = false; 103 match = false;
105 } 104 }
106 } 105 }
107 } 106 }
108 107
109 REPORTER_ASSERT(reporter, match); 108 REPORTER_ASSERT(reporter, match);
110 } 109 }
111 } 110 }
112 111
113 #endif 112 #endif
OLDNEW
« no previous file with comments | « tests/ReadPixelsTest.cpp ('k') | tests/Reader32Test.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698