| 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" |
| 11 #include "GrGeometryData.h" | 11 #include "GrGeometryData.h" |
| 12 #include "GrGeometryProcessor.h" |
| 12 #include "GrInvariantOutput.h" | 13 #include "GrInvariantOutput.h" |
| 13 #include "GrMemoryPool.h" | 14 #include "GrMemoryPool.h" |
| 14 #include "SkTLS.h" | 15 #include "SkTLS.h" |
| 15 | 16 |
| 16 #if SK_ALLOW_STATIC_GLOBAL_INITIALIZERS | 17 #if SK_ALLOW_STATIC_GLOBAL_INITIALIZERS |
| 17 | 18 |
| 18 class GrFragmentProcessor; | 19 class GrFragmentProcessor; |
| 19 class GrGeometryProcessor; | 20 class GrGeometryProcessor; |
| 20 | 21 |
| 21 /* | 22 /* |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 for (int i = 0; i < count; ++i) { | 163 for (int i = 0; i < count; ++i) { |
| 163 if (*fCoordTransforms[i] != *that.fCoordTransforms[i]) { | 164 if (*fCoordTransforms[i] != *that.fCoordTransforms[i]) { |
| 164 return false; | 165 return false; |
| 165 } | 166 } |
| 166 } | 167 } |
| 167 return true; | 168 return true; |
| 168 } | 169 } |
| 169 | 170 |
| 170 ////////////////////////////////////////////////////////////////////////////////
/////////////////// | 171 ////////////////////////////////////////////////////////////////////////////////
/////////////////// |
| 171 | 172 |
| 173 void GrGeometryProcessor::computeInvariantColor(GrInvariantOutput* intout) const
{ |
| 174 |
| 175 } |
| 176 |
| 177 ////////////////////////////////////////////////////////////////////////////////
/////////////////// |
| 178 |
| 172 /* | 179 /* |
| 173 * GrGeometryData shares the same pool so it lives in this file too | 180 * GrGeometryData shares the same pool so it lives in this file too |
| 174 */ | 181 */ |
| 175 void* GrGeometryData::operator new(size_t size) { | 182 void* GrGeometryData::operator new(size_t size) { |
| 176 return GrProcessor_Globals::GetTLS()->allocate(size); | 183 return GrProcessor_Globals::GetTLS()->allocate(size); |
| 177 } | 184 } |
| 178 | 185 |
| 179 void GrGeometryData::operator delete(void* target) { | 186 void GrGeometryData::operator delete(void* target) { |
| 180 GrProcessor_Globals::GetTLS()->release(target); | 187 GrProcessor_Globals::GetTLS()->release(target); |
| 181 } | 188 } |
| OLD | NEW |