| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 const GrDrawTargetCaps&, | 63 const GrDrawTargetCaps&, |
| 64 GrTexture*[]) { | 64 GrTexture*[]) { |
| 65 return BigKeyProcessor::Create(); | 65 return BigKeyProcessor::Create(); |
| 66 } | 66 } |
| 67 | 67 |
| 68 class GLBigKeyProcessor : public GrGLFragmentProcessor { | 68 class GLBigKeyProcessor : public GrGLFragmentProcessor { |
| 69 public: | 69 public: |
| 70 GLBigKeyProcessor(const GrBackendProcessorFactory& factory, const GrProcesso
r&) | 70 GLBigKeyProcessor(const GrBackendProcessorFactory& factory, const GrProcesso
r&) |
| 71 : INHERITED(factory) {} | 71 : INHERITED(factory) {} |
| 72 | 72 |
| 73 virtual void emitCode(GrGLProgramBuilder* builder, | 73 virtual void emitCode(GrGLFPBuilder* builder, |
| 74 const GrFragmentProcessor& fp, | 74 const GrFragmentProcessor& fp, |
| 75 const GrProcessorKey& key, | 75 const GrProcessorKey& key, |
| 76 const char* outputColor, | 76 const char* outputColor, |
| 77 const char* inputColor, | 77 const char* inputColor, |
| 78 const TransformedCoordsArray&, | 78 const TransformedCoordsArray&, |
| 79 const TextureSamplerArray&) { | 79 const TextureSamplerArray&) { |
| 80 for (uint32_t i = 0; i < kMaxKeySize; i++) { | 80 for (uint32_t i = 0; i < kMaxKeySize; i++) { |
| 81 SkASSERT(key.get32(i) == i); | 81 SkASSERT(key.get32(i) == i); |
| 82 } | 82 } |
| 83 } | 83 } |
| (...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 537 SkRect::MakeWH(SK_Scalar1, SK_Scalar1), SK_Scalar1)); | 537 SkRect::MakeWH(SK_Scalar1, SK_Scalar1), SK_Scalar1)); |
| 538 GrConfigConversionEffect::Create(NULL, | 538 GrConfigConversionEffect::Create(NULL, |
| 539 false, | 539 false, |
| 540 GrConfigConversionEffect::kNone_PMConversio
n, | 540 GrConfigConversionEffect::kNone_PMConversio
n, |
| 541 SkMatrix::I()); | 541 SkMatrix::I()); |
| 542 SkScalar matrix[20]; | 542 SkScalar matrix[20]; |
| 543 SkAutoTUnref<SkColorMatrixFilter> cmf(SkColorMatrixFilter::Create(matrix)); | 543 SkAutoTUnref<SkColorMatrixFilter> cmf(SkColorMatrixFilter::Create(matrix)); |
| 544 } | 544 } |
| 545 | 545 |
| 546 #endif | 546 #endif |
| OLD | NEW |