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

Side by Side Diff: tests/GpuBitmapCopyTest.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/GifTest.cpp ('k') | tests/GpuColorFilterTest.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 /* 2 /*
3 * Copyright 2012 Google Inc. 3 * Copyright 2012 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #if SK_SUPPORT_GPU 9 #if SK_SUPPORT_GPU
10 10
11 #include "GrContext.h" 11 #include "GrContext.h"
12 #include "GrContextFactory.h" 12 #include "GrContextFactory.h"
13 #include "SkBitmap.h" 13 #include "SkBitmap.h"
14 #include "SkCanvas.h" 14 #include "SkCanvas.h"
15 #include "SkColor.h" 15 #include "SkColor.h"
16 #include "SkGpuDevice.h" 16 #include "SkGpuDevice.h"
17 #include "SkPaint.h" 17 #include "SkPaint.h"
18 #include "SkPixelRef.h" 18 #include "SkPixelRef.h"
19 #include "SkRect.h" 19 #include "SkRect.h"
20 #include "Test.h" 20 #include "Test.h"
21 #include "TestClassDef.h"
22 21
23 static const char* boolStr(bool value) { 22 static const char* boolStr(bool value) {
24 return value ? "true" : "false"; 23 return value ? "true" : "false";
25 } 24 }
26 25
27 // these are in the same order as the SkBitmap::Config enum 26 // these are in the same order as the SkBitmap::Config enum
28 static const char* gConfigName[] = { 27 static const char* gConfigName[] = {
29 "None", "8888" 28 "None", "8888"
30 }; 29 };
31 30
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 REPORTER_ASSERT(reporter, success == canSucceed); 182 REPORTER_ASSERT(reporter, success == canSucceed);
184 TestIndividualCopy(reporter, gPairs[j].fConfig, success, sub set, subsetCopy, 183 TestIndividualCopy(reporter, gPairs[j].fConfig, success, sub set, subsetCopy,
185 true); 184 true);
186 } 185 }
187 } // for (size_t j = ... 186 } // for (size_t j = ...
188 } // for (size_t i = ... 187 } // for (size_t i = ...
189 } // GrContextFactory::GLContextType 188 } // GrContextFactory::GLContextType
190 } 189 }
191 190
192 #endif 191 #endif
OLDNEW
« no previous file with comments | « tests/GifTest.cpp ('k') | tests/GpuColorFilterTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698