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

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

Issue 783763002: Initial CL to move color / coverage off of drawstate (Closed) Base URL: https://skia.googlesource.com/skia.git@no-static-gp
Patch Set: bug fix Created 6 years 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/GrPathRenderer.h ('k') | src/gpu/GrSWMaskHelper.h » ('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 "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 "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;
21 22
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 for (int i = 0; i < count; ++i) { 164 for (int i = 0; i < count; ++i) {
164 if (*fCoordTransforms[i] != *that.fCoordTransforms[i]) { 165 if (*fCoordTransforms[i] != *that.fCoordTransforms[i]) {
165 return false; 166 return false;
166 } 167 }
167 } 168 }
168 return true; 169 return true;
169 } 170 }
170 171
171 //////////////////////////////////////////////////////////////////////////////// /////////////////// 172 //////////////////////////////////////////////////////////////////////////////// ///////////////////
172 173
174 void GrGeometryProcessor::computeInvariantColor(GrInvariantOutput* intout) const {
175
176 }
177
178 //////////////////////////////////////////////////////////////////////////////// ///////////////////
179
173 /* 180 /*
174 * GrGeometryData shares the same pool so it lives in this file too 181 * GrGeometryData shares the same pool so it lives in this file too
175 */ 182 */
176 void* GrGeometryData::operator new(size_t size) { 183 void* GrGeometryData::operator new(size_t size) {
177 return GrProcessor_Globals::GetTLS()->allocate(size); 184 return GrProcessor_Globals::GetTLS()->allocate(size);
178 } 185 }
179 186
180 void GrGeometryData::operator delete(void* target) { 187 void GrGeometryData::operator delete(void* target) {
181 GrProcessor_Globals::GetTLS()->release(target); 188 GrProcessor_Globals::GetTLS()->release(target);
182 } 189 }
183 190
184 //////////////////////////////////////////////////////////////////////////////// /////////////////// 191 //////////////////////////////////////////////////////////////////////////////// ///////////////////
185 192
186 // Initial static variable from GrXPFactory 193 // Initial static variable from GrXPFactory
187 int32_t GrXPFactory::gCurrXPFClassID = 194 int32_t GrXPFactory::gCurrXPFClassID =
188 GrXPFactory::kIllegalXPFClassID; 195 GrXPFactory::kIllegalXPFClassID;
189 196
OLDNEW
« no previous file with comments | « src/gpu/GrPathRenderer.h ('k') | src/gpu/GrSWMaskHelper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698