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

Side by Side Diff: tests/GLProgramsTest.cpp

Issue 648463003: FPs now use the correct builder types(just a rename) (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 2 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 | « src/gpu/gl/builders/GrGLProgramBuilder.h ('k') | no next file » | 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 /* 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
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
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
OLDNEW
« no previous file with comments | « src/gpu/gl/builders/GrGLProgramBuilder.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698