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

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

Issue 1316513002: Change SkShader;asFragmentProcessor signature to no longer take skpaint\grcolor* (Closed) Base URL: https://skia.googlesource.com/skia.git@things
Patch Set: fix no-gpu build Created 5 years, 3 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
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"
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 } 224 }
225 int count = this->numTransforms(); 225 int count = this->numTransforms();
226 for (int i = 0; i < count; ++i) { 226 for (int i = 0; i < count; ++i) {
227 if (this->coordTransform(i) != that.coordTransform(i)) { 227 if (this->coordTransform(i) != that.coordTransform(i)) {
228 return false; 228 return false;
229 } 229 }
230 } 230 }
231 return true; 231 return true;
232 } 232 }
233 233
234 void GrFragmentProcessor::computeInvariantOutput(GrInvariantOutput* inout) const {
235 this->onComputeInvariantOutput(inout);
236 }
237
238 //////////////////////////////////////////////////////////////////////////////// /////////////////// 234 //////////////////////////////////////////////////////////////////////////////// ///////////////////
239 235
240 // Initial static variable from GrXPFactory 236 // Initial static variable from GrXPFactory
241 int32_t GrXPFactory::gCurrXPFClassID = 237 int32_t GrXPFactory::gCurrXPFClassID =
242 GrXPFactory::kIllegalXPFClassID; 238 GrXPFactory::kIllegalXPFClassID;
243 239
244 //////////////////////////////////////////////////////////////////////////////// /////////////////// 240 //////////////////////////////////////////////////////////////////////////////// ///////////////////
245 241
246 // GrProcessorDataManager lives in the same pool 242 // GrProcessorDataManager lives in the same pool
247 void* GrProcessorDataManager::operator new(size_t size) { 243 void* GrProcessorDataManager::operator new(size_t size) {
248 return MemoryPoolAccessor().pool()->allocate(size); 244 return MemoryPoolAccessor().pool()->allocate(size);
249 } 245 }
250 246
251 void GrProcessorDataManager::operator delete(void* target) { 247 void GrProcessorDataManager::operator delete(void* target) {
252 return MemoryPoolAccessor().pool()->release(target); 248 return MemoryPoolAccessor().pool()->release(target);
253 } 249 }
OLDNEW
« src/core/SkPictureShader.cpp ('K') | « src/gpu/GrOvalRenderer.cpp ('k') | src/gpu/SkGr.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698