| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 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 // This is a GPU-backend specific test. It relies on static intializers to work | 9 // This is a GPU-backend specific test. It relies on static intializers to work |
| 10 | 10 |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 dummyDesc.fConfig = kSkia8888_GrPixelConfig; | 140 dummyDesc.fConfig = kSkia8888_GrPixelConfig; |
| 141 dummyDesc.fWidth = 34; | 141 dummyDesc.fWidth = 34; |
| 142 dummyDesc.fHeight = 18; | 142 dummyDesc.fHeight = 18; |
| 143 SkAutoTUnref<GrTexture> dummyTexture1(this->createTexture(dummyDesc, NULL, 0
)); | 143 SkAutoTUnref<GrTexture> dummyTexture1(this->createTexture(dummyDesc, NULL, 0
)); |
| 144 dummyDesc.fFlags = kNone_GrTextureFlags; | 144 dummyDesc.fFlags = kNone_GrTextureFlags; |
| 145 dummyDesc.fConfig = kAlpha_8_GrPixelConfig; | 145 dummyDesc.fConfig = kAlpha_8_GrPixelConfig; |
| 146 dummyDesc.fWidth = 16; | 146 dummyDesc.fWidth = 16; |
| 147 dummyDesc.fHeight = 22; | 147 dummyDesc.fHeight = 22; |
| 148 SkAutoTUnref<GrTexture> dummyTexture2(this->createTexture(dummyDesc, NULL, 0
)); | 148 SkAutoTUnref<GrTexture> dummyTexture2(this->createTexture(dummyDesc, NULL, 0
)); |
| 149 | 149 |
| 150 if (!dummyTexture1 || ! dummyTexture2) { |
| 151 return false; |
| 152 } |
| 153 |
| 150 static const int NUM_TESTS = 512; | 154 static const int NUM_TESTS = 512; |
| 151 | 155 |
| 152 SkRandom random; | 156 SkRandom random; |
| 153 for (int t = 0; t < NUM_TESTS; ++t) { | 157 for (int t = 0; t < NUM_TESTS; ++t) { |
| 154 | 158 |
| 155 #if 0 | 159 #if 0 |
| 156 GrPrintf("\nTest Program %d\n-------------\n", t); | 160 GrPrintf("\nTest Program %d\n-------------\n", t); |
| 157 static const int stop = -1; | 161 static const int stop = -1; |
| 158 if (t == stop) { | 162 if (t == stop) { |
| 159 int breakpointhere = 9; | 163 int breakpointhere = 9; |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 SkRect::MakeWH(SK_Scalar1, SK_Scalar1), SK_Scalar1)); | 277 SkRect::MakeWH(SK_Scalar1, SK_Scalar1), SK_Scalar1)); |
| 274 GrConfigConversionEffect::Create(NULL, | 278 GrConfigConversionEffect::Create(NULL, |
| 275 false, | 279 false, |
| 276 GrConfigConversionEffect::kNone_PMConversio
n, | 280 GrConfigConversionEffect::kNone_PMConversio
n, |
| 277 SkMatrix::I()); | 281 SkMatrix::I()); |
| 278 SkScalar matrix[20]; | 282 SkScalar matrix[20]; |
| 279 SkAutoTUnref<SkColorMatrixFilter> cmf(SkColorMatrixFilter::Create(matrix)); | 283 SkAutoTUnref<SkColorMatrixFilter> cmf(SkColorMatrixFilter::Create(matrix)); |
| 280 } | 284 } |
| 281 | 285 |
| 282 #endif | 286 #endif |
| OLD | NEW |