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

Side by Side Diff: tests/RectangleTextureTest.cpp

Issue 1842753002: Style bikeshed - remove extraneous whitespace (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 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/RecordTest.cpp ('k') | tests/RefDictTest.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 2015 Google Inc. 2 * Copyright 2015 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 #if SK_SUPPORT_GPU 9 #if SK_SUPPORT_GPU
10 #include "GrContext.h" 10 #include "GrContext.h"
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 for (int y = 0; y < h/2; ++y) { 130 for (int y = 0; y < h/2; ++y) {
131 for (int x = 0; x < w; ++x) { 131 for (int x = 0; x < w; ++x) {
132 expectedPixels.get()[y * h + x] = expectedColor1; 132 expectedPixels.get()[y * h + x] = expectedColor1;
133 } 133 }
134 } 134 }
135 135
136 test_read_pixels(reporter, context, rectangleTexture, expectedPixels.get ()); 136 test_read_pixels(reporter, context, rectangleTexture, expectedPixels.get ());
137 } 137 }
138 } 138 }
139 139
140 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(RectangleTexture, reporter, context, glContex t) { 140 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(RectangleTexture, reporter, context, glContex t) {
141 static const int kWidth = 13; 141 static const int kWidth = 13;
142 static const int kHeight = 13; 142 static const int kHeight = 13;
143 143
144 GrColor pixels[kWidth * kHeight]; 144 GrColor pixels[kWidth * kHeight];
145 for (int y = 0; y < kHeight; ++y) { 145 for (int y = 0; y < kHeight; ++y) {
146 for (int x = 0; x < kWidth; ++x) { 146 for (int x = 0; x < kWidth; ++x) {
147 pixels[y * kWidth + x] = y * kWidth + x; 147 pixels[y * kWidth + x] = y * kWidth + x;
148 } 148 }
149 } 149 }
150 150
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 198
199 test_write_pixels(reporter, context, rectangleTexture); 199 test_write_pixels(reporter, context, rectangleTexture);
200 200
201 test_clear(reporter, context, rectangleTexture); 201 test_clear(reporter, context, rectangleTexture);
202 202
203 GR_GL_CALL(glContext->gl(), DeleteTextures(1, &rectTexID)); 203 GR_GL_CALL(glContext->gl(), DeleteTextures(1, &rectTexID));
204 } 204 }
205 } 205 }
206 206
207 #endif 207 #endif
OLDNEW
« no previous file with comments | « tests/RecordTest.cpp ('k') | tests/RefDictTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698