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 "GrGeometryProcessor.h" | 12 #include "GrGeometryProcessor.h" |
12 #include "GrInvariantOutput.h" | 13 #include "GrInvariantOutput.h" |
13 #include "GrMemoryPool.h" | 14 #include "GrMemoryPool.h" |
14 #include "GrXferProcessor.h" | 15 #include "GrXferProcessor.h" |
15 #include "SkTLS.h" | 16 #include "SkTLS.h" |
16 | 17 |
17 #if SK_ALLOW_STATIC_GLOBAL_INITIALIZERS | 18 #if SK_ALLOW_STATIC_GLOBAL_INITIALIZERS |
18 | 19 |
19 class GrFragmentProcessor; | 20 class GrFragmentProcessor; |
20 class GrGeometryProcessor; | 21 class GrGeometryProcessor; |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 } | 165 } |
165 return true; | 166 return true; |
166 } | 167 } |
167 | 168 |
168 void GrFragmentProcessor::computeInvariantOutput(GrInvariantOutput* inout) const
{ | 169 void GrFragmentProcessor::computeInvariantOutput(GrInvariantOutput* inout) const
{ |
169 this->onComputeInvariantOutput(inout); | 170 this->onComputeInvariantOutput(inout); |
170 } | 171 } |
171 | 172 |
172 ////////////////////////////////////////////////////////////////////////////////
/////////////////// | 173 ////////////////////////////////////////////////////////////////////////////////
/////////////////// |
173 | 174 |
| 175 /* |
| 176 * GrGeometryData shares the same pool so it lives in this file too |
| 177 */ |
| 178 void* GrGeometryData::operator new(size_t size) { |
| 179 return GrProcessor_Globals::GetTLS()->allocate(size); |
| 180 } |
| 181 |
| 182 void GrGeometryData::operator delete(void* target) { |
| 183 GrProcessor_Globals::GetTLS()->release(target); |
| 184 } |
| 185 |
| 186 ////////////////////////////////////////////////////////////////////////////////
/////////////////// |
| 187 |
174 // Initial static variable from GrXPFactory | 188 // Initial static variable from GrXPFactory |
175 int32_t GrXPFactory::gCurrXPFClassID = | 189 int32_t GrXPFactory::gCurrXPFClassID = |
176 GrXPFactory::kIllegalXPFClassID; | 190 GrXPFactory::kIllegalXPFClassID; |
OLD | NEW |