OLD | NEW |
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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 private: | 85 private: |
86 static void* CreateTLS() { | 86 static void* CreateTLS() { |
87 return SkNEW_ARGS(GrMemoryPool, (4096, 4096)); | 87 return SkNEW_ARGS(GrMemoryPool, (4096, 4096)); |
88 } | 88 } |
89 | 89 |
90 static void DeleteTLS(void* pool) { | 90 static void DeleteTLS(void* pool) { |
91 SkDELETE(reinterpret_cast<GrMemoryPool*>(pool)); | 91 SkDELETE(reinterpret_cast<GrMemoryPool*>(pool)); |
92 } | 92 } |
93 }; | 93 }; |
94 | 94 |
95 int32_t GrBackendProcessorFactory::fCurrEffectClassID = | 95 int32_t GrBackendProcessorFactory::fCurrProcessorClassID = |
96 GrBackendProcessorFactory::kIllegalEffectClassID; | 96 GrBackendProcessorFactory::kIllegalProcessorClassID; |
97 | 97 |
98 /////////////////////////////////////////////////////////////////////////////// | 98 /////////////////////////////////////////////////////////////////////////////// |
99 | 99 |
100 GrProcessor::~GrProcessor() {} | 100 GrProcessor::~GrProcessor() {} |
101 | 101 |
102 const char* GrProcessor::name() const { | 102 const char* GrProcessor::name() const { |
103 return this->getFactory().name(); | 103 return this->getFactory().name(); |
104 } | 104 } |
105 | 105 |
106 void GrProcessor::addTextureAccess(const GrTextureAccess* access) { | 106 void GrProcessor::addTextureAccess(const GrTextureAccess* access) { |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 } | 163 } |
164 } | 164 } |
165 return true; | 165 return true; |
166 } | 166 } |
167 #endif // end DEBUG | 167 #endif // end DEBUG |
168 | 168 |
169 ////////////////////////////////////////////////////////////////////////////////
/////////////////// | 169 ////////////////////////////////////////////////////////////////////////////////
/////////////////// |
170 | 170 |
171 void GrFragmentProcessor::addCoordTransform(const GrCoordTransform* transform) { | 171 void GrFragmentProcessor::addCoordTransform(const GrCoordTransform* transform) { |
172 fCoordTransforms.push_back(transform); | 172 fCoordTransforms.push_back(transform); |
173 SkDEBUGCODE(transform->setInEffect();) | 173 SkDEBUGCODE(transform->setInProcessor();) |
174 } | 174 } |
OLD | NEW |