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

Side by Side Diff: tests/CachedDecodingPixelRefTest.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/BlurTest.cpp ('k') | tests/CanvasStateTest.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 #include "SkBitmap.h" 8 #include "SkBitmap.h"
9 #include "SkCanvas.h" 9 #include "SkCanvas.h"
10 #include "SkData.h" 10 #include "SkData.h"
11 #include "SkDecodingImageGenerator.h" 11 #include "SkDecodingImageGenerator.h"
12 #include "SkDiscardableMemoryPool.h" 12 #include "SkDiscardableMemoryPool.h"
13 #include "SkImageDecoder.h" 13 #include "SkImageDecoder.h"
14 #include "SkCachingPixelRef.h" 14 #include "SkCachingPixelRef.h"
15 #include "SkScaledImageCache.h" 15 #include "SkScaledImageCache.h"
16 #include "SkStream.h" 16 #include "SkStream.h"
17 #include "SkUtils.h" 17 #include "SkUtils.h"
18 18
19 #include "Test.h" 19 #include "Test.h"
20 #include "TestClassDef.h"
21 20
22 /** 21 /**
23 * Fill this bitmap with some color. 22 * Fill this bitmap with some color.
24 */ 23 */
25 static void make_test_image(SkBitmap* bm) { 24 static void make_test_image(SkBitmap* bm) {
26 static const int W = 50, H = 50; 25 static const int W = 50, H = 50;
27 static const SkBitmap::Config config = SkBitmap::kARGB_8888_Config; 26 static const SkBitmap::Config config = SkBitmap::kARGB_8888_Config;
28 bm->setConfig(config, W, H); 27 bm->setConfig(config, W, H);
29 bm->allocPixels(); 28 bm->allocPixels();
30 bm->eraseColor(SK_ColorBLACK); 29 bm->eraseColor(SK_ColorBLACK);
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 SkDiscardableMemoryPool* globalPool = SkGetGlobalDiscardableMemoryPool(); 318 SkDiscardableMemoryPool* globalPool = SkGetGlobalDiscardableMemoryPool();
320 // Only acts differently from NULL on a platform that has a 319 // Only acts differently from NULL on a platform that has a
321 // default discardable memory implementation that differs from the 320 // default discardable memory implementation that differs from the
322 // global DM pool. 321 // global DM pool.
323 CheckPixelRef(TestImageGenerator::kFailGetPixels_TestType, 322 CheckPixelRef(TestImageGenerator::kFailGetPixels_TestType,
324 reporter, kSkDiscardable_PixelRefType, globalPool); 323 reporter, kSkDiscardable_PixelRefType, globalPool);
325 CheckPixelRef(TestImageGenerator::kSucceedGetPixels_TestType, 324 CheckPixelRef(TestImageGenerator::kSucceedGetPixels_TestType,
326 reporter, kSkDiscardable_PixelRefType, globalPool); 325 reporter, kSkDiscardable_PixelRefType, globalPool);
327 } 326 }
328 //////////////////////////////////////////////////////////////////////////////// 327 ////////////////////////////////////////////////////////////////////////////////
OLDNEW
« no previous file with comments | « tests/BlurTest.cpp ('k') | tests/CanvasStateTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698