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 "GrContext.h" | 9 #include "GrContext.h" |
10 #include "GrCoordTransform.h" | 10 #include "GrCoordTransform.h" |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 } | 224 } |
225 int count = this->numTransforms(); | 225 int count = this->numTransforms(); |
226 for (int i = 0; i < count; ++i) { | 226 for (int i = 0; i < count; ++i) { |
227 if (this->coordTransform(i) != that.coordTransform(i)) { | 227 if (this->coordTransform(i) != that.coordTransform(i)) { |
228 return false; | 228 return false; |
229 } | 229 } |
230 } | 230 } |
231 return true; | 231 return true; |
232 } | 232 } |
233 | 233 |
234 void GrFragmentProcessor::computeInvariantOutput(GrInvariantOutput* inout) const
{ | |
235 this->onComputeInvariantOutput(inout); | |
236 } | |
237 | |
238 ////////////////////////////////////////////////////////////////////////////////
/////////////////// | 234 ////////////////////////////////////////////////////////////////////////////////
/////////////////// |
239 | 235 |
240 // Initial static variable from GrXPFactory | 236 // Initial static variable from GrXPFactory |
241 int32_t GrXPFactory::gCurrXPFClassID = | 237 int32_t GrXPFactory::gCurrXPFClassID = |
242 GrXPFactory::kIllegalXPFClassID; | 238 GrXPFactory::kIllegalXPFClassID; |
243 | 239 |
244 ////////////////////////////////////////////////////////////////////////////////
/////////////////// | 240 ////////////////////////////////////////////////////////////////////////////////
/////////////////// |
245 | 241 |
246 // GrProcessorDataManager lives in the same pool | 242 // GrProcessorDataManager lives in the same pool |
247 void* GrProcessorDataManager::operator new(size_t size) { | 243 void* GrProcessorDataManager::operator new(size_t size) { |
248 return MemoryPoolAccessor().pool()->allocate(size); | 244 return MemoryPoolAccessor().pool()->allocate(size); |
249 } | 245 } |
250 | 246 |
251 void GrProcessorDataManager::operator delete(void* target) { | 247 void GrProcessorDataManager::operator delete(void* target) { |
252 return MemoryPoolAccessor().pool()->release(target); | 248 return MemoryPoolAccessor().pool()->release(target); |
253 } | 249 } |
OLD | NEW |