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

Side by Side Diff: tests/ReadWriteAlphaTest.cpp

Issue 1316233002: Style Change: NULL->nullptr (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-27 (Thursday) 10:25:06 EDT Created 5 years, 3 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
« 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 #include "Test.h" 8 #include "Test.h"
9 9
10 // This test is specific to the GPU backend. 10 // This test is specific to the GPU backend.
11 #if SK_SUPPORT_GPU && !defined(SK_BUILD_FOR_ANDROID) 11 #if SK_SUPPORT_GPU && !defined(SK_BUILD_FOR_ANDROID)
12 12
13 #include "GrContextFactory.h" 13 #include "GrContextFactory.h"
14 #include "SkGpuDevice.h" 14 #include "SkGpuDevice.h"
15 15
16 static const int X_SIZE = 12; 16 static const int X_SIZE = 12;
17 static const int Y_SIZE = 12; 17 static const int Y_SIZE = 12;
18 18
19 DEF_GPUTEST(ReadWriteAlpha, reporter, factory) { 19 DEF_GPUTEST(ReadWriteAlpha, reporter, factory) {
20 for (int type = 0; type < GrContextFactory::kLastGLContextType; ++type) { 20 for (int type = 0; type < GrContextFactory::kLastGLContextType; ++type) {
21 GrContextFactory::GLContextType glType = static_cast<GrContextFactory::G LContextType>(type); 21 GrContextFactory::GLContextType glType = static_cast<GrContextFactory::G LContextType>(type);
22 if (!GrContextFactory::IsRenderingGLContext(glType)) { 22 if (!GrContextFactory::IsRenderingGLContext(glType)) {
23 continue; 23 continue;
24 } 24 }
25 GrContext* context = factory->get(glType); 25 GrContext* context = factory->get(glType);
26 if (NULL == context) { 26 if (nullptr == context) {
27 continue; 27 continue;
28 } 28 }
29 29
30 unsigned char textureData[X_SIZE][Y_SIZE]; 30 unsigned char textureData[X_SIZE][Y_SIZE];
31 31
32 memset(textureData, 0, X_SIZE * Y_SIZE); 32 memset(textureData, 0, X_SIZE * Y_SIZE);
33 33
34 GrSurfaceDesc desc; 34 GrSurfaceDesc desc;
35 35
36 // let Skia know we will be using this texture as a render target 36 // let Skia know we will be using this texture as a render target
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 match = false; 106 match = false;
107 } 107 }
108 } 108 }
109 } 109 }
110 110
111 REPORTER_ASSERT(reporter, match); 111 REPORTER_ASSERT(reporter, match);
112 } 112 }
113 } 113 }
114 114
115 #endif 115 #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