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

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

Issue 659803005: Last round of effect->processor (for now) (Closed) Base URL: https://skia.googlesource.com/skia.git@factory
Patch Set: fixed Created 6 years, 2 months 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 | « include/gpu/GrCoordTransform.h ('k') | src/gpu/gl/GrGLProgramDesc.cpp » ('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 "GrBackendProcessorFactory.h" 9 #include "GrBackendProcessorFactory.h"
10 #include "GrContext.h" 10 #include "GrContext.h"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 private: 85 private:
86 static void* CreateTLS() { 86 static void* CreateTLS() {
87 return SkNEW_ARGS(GrMemoryPool, (4096, 4096)); 87 return SkNEW_ARGS(GrMemoryPool, (4096, 4096));
88 } 88 }
89 89
90 static void DeleteTLS(void* pool) { 90 static void DeleteTLS(void* pool) {
91 SkDELETE(reinterpret_cast<GrMemoryPool*>(pool)); 91 SkDELETE(reinterpret_cast<GrMemoryPool*>(pool));
92 } 92 }
93 }; 93 };
94 94
95 int32_t GrBackendProcessorFactory::fCurrEffectClassID = 95 int32_t GrBackendProcessorFactory::fCurrProcessorClassID =
96 GrBackendProcessorFactory::kIllegalEffectClassID; 96 GrBackendProcessorFactory::kIllegalProcessorClassID;
97 97
98 /////////////////////////////////////////////////////////////////////////////// 98 ///////////////////////////////////////////////////////////////////////////////
99 99
100 GrProcessor::~GrProcessor() {} 100 GrProcessor::~GrProcessor() {}
101 101
102 const char* GrProcessor::name() const { 102 const char* GrProcessor::name() const {
103 return this->getFactory().name(); 103 return this->getFactory().name();
104 } 104 }
105 105
106 void GrProcessor::addTextureAccess(const GrTextureAccess* access) { 106 void GrProcessor::addTextureAccess(const GrTextureAccess* access) {
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 } 163 }
164 } 164 }
165 return true; 165 return true;
166 } 166 }
167 #endif // end DEBUG 167 #endif // end DEBUG
168 168
169 //////////////////////////////////////////////////////////////////////////////// /////////////////// 169 //////////////////////////////////////////////////////////////////////////////// ///////////////////
170 170
171 void GrFragmentProcessor::addCoordTransform(const GrCoordTransform* transform) { 171 void GrFragmentProcessor::addCoordTransform(const GrCoordTransform* transform) {
172 fCoordTransforms.push_back(transform); 172 fCoordTransforms.push_back(transform);
173 SkDEBUGCODE(transform->setInEffect();) 173 SkDEBUGCODE(transform->setInProcessor();)
174 } 174 }
OLDNEW
« no previous file with comments | « include/gpu/GrCoordTransform.h ('k') | src/gpu/gl/GrGLProgramDesc.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698