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

Side by Side Diff: src/gpu/GrProcessor.cpp

Issue 678953002: Default geometry processor (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix Created 6 years, 1 month 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/GrOvalRenderer.cpp ('k') | src/gpu/effects/GrBezierEffect.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 "GrProcessor.h" 8 #include "GrProcessor.h"
9 #include "GrBackendProcessorFactory.h" 9 #include "GrBackendProcessorFactory.h"
10 #include "GrContext.h" 10 #include "GrContext.h"
(...skipping 20 matching lines...) Expand all
31 static SkTArray<GrProcessorTestFactory<GrGeometryProcessor>*, true> gFactori es; 31 static SkTArray<GrProcessorTestFactory<GrGeometryProcessor>*, true> gFactori es;
32 return &gFactories; 32 return &gFactories;
33 } 33 }
34 34
35 /* 35 /*
36 * To ensure we always have successful static initialization, before creating fr om the factories 36 * To ensure we always have successful static initialization, before creating fr om the factories
37 * we verify the count is as expected. If a new factory is added, then these nu mbers must be 37 * we verify the count is as expected. If a new factory is added, then these nu mbers must be
38 * manually adjusted. 38 * manually adjusted.
39 */ 39 */
40 static const int kFPFactoryCount = 37; 40 static const int kFPFactoryCount = 37;
41 static const int kGPFactoryCount = 15; 41 static const int kGPFactoryCount = 14;
42 42
43 template<> 43 template<>
44 void GrProcessorTestFactory<GrFragmentProcessor>::VerifyFactoryCount() { 44 void GrProcessorTestFactory<GrFragmentProcessor>::VerifyFactoryCount() {
45 if (kFPFactoryCount != GetFactories()->count()) { 45 if (kFPFactoryCount != GetFactories()->count()) {
46 SkFAIL("Wrong number of fragment processor factories!"); 46 SkFAIL("Wrong number of fragment processor factories!");
47 } 47 }
48 } 48 }
49 49
50 template<> 50 template<>
51 void GrProcessorTestFactory<GrGeometryProcessor>::VerifyFactoryCount() { 51 void GrProcessorTestFactory<GrGeometryProcessor>::VerifyFactoryCount() {
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 return false; 187 return false;
188 } 188 }
189 int count = fCoordTransforms.count(); 189 int count = fCoordTransforms.count();
190 for (int i = 0; i < count; ++i) { 190 for (int i = 0; i < count; ++i) {
191 if (*fCoordTransforms[i] != *that.fCoordTransforms[i]) { 191 if (*fCoordTransforms[i] != *that.fCoordTransforms[i]) {
192 return false; 192 return false;
193 } 193 }
194 } 194 }
195 return true; 195 return true;
196 } 196 }
OLDNEW
« no previous file with comments | « src/gpu/GrOvalRenderer.cpp ('k') | src/gpu/effects/GrBezierEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698