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

Side by Side Diff: tests/ResourceCacheTest.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/RegionTest.cpp ('k') | tests/RoundRectTest.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 2013 Google Inc. 2 * Copyright 2013 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 #if SK_SUPPORT_GPU 8 #if SK_SUPPORT_GPU
9 9
10 #include "GrContextFactory.h" 10 #include "GrContextFactory.h"
11 #include "SkGpuDevice.h" 11 #include "SkGpuDevice.h"
12 #include "Test.h" 12 #include "Test.h"
13 #include "TestClassDef.h"
14 13
15 static const int gWidth = 640; 14 static const int gWidth = 640;
16 static const int gHeight = 480; 15 static const int gHeight = 480;
17 16
18 //////////////////////////////////////////////////////////////////////////////// 17 ////////////////////////////////////////////////////////////////////////////////
19 static void test_cache(skiatest::Reporter* reporter, 18 static void test_cache(skiatest::Reporter* reporter,
20 GrContext* context, 19 GrContext* context,
21 SkCanvas* canvas) { 20 SkCanvas* canvas) {
22 const SkIRect size = SkIRect::MakeWH(gWidth, gHeight); 21 const SkIRect size = SkIRect::MakeWH(gWidth, gHeight);
23 22
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 76
78 SkAutoTUnref<GrTexture> texture(context->createUncachedTexture(desc, NUL L, 0)); 77 SkAutoTUnref<GrTexture> texture(context->createUncachedTexture(desc, NUL L, 0));
79 SkAutoTUnref<SkGpuDevice> device(SkNEW_ARGS(SkGpuDevice, (context, textu re.get()))); 78 SkAutoTUnref<SkGpuDevice> device(SkNEW_ARGS(SkGpuDevice, (context, textu re.get())));
80 SkCanvas canvas(device.get()); 79 SkCanvas canvas(device.get());
81 80
82 test_cache(reporter, context, &canvas); 81 test_cache(reporter, context, &canvas);
83 } 82 }
84 } 83 }
85 84
86 #endif 85 #endif
OLDNEW
« no previous file with comments | « tests/RegionTest.cpp ('k') | tests/RoundRectTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698