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

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: nvpr bug fixed 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
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 "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
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 }
OLDNEW
« src/gpu/GrDrawState.h ('K') | « src/gpu/GrPathRenderer.h ('k') | src/gpu/GrSWMaskHelper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698