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

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

Issue 12462008: Add GrEllipseEdgeEffect (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: rebase again Created 7 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « src/gpu/GrDrawTarget.cpp ('k') | src/gpu/GrSWMaskHelper.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 "GrEffect.h" 8 #include "GrEffect.h"
9 #include "GrBackendEffectFactory.h" 9 #include "GrBackendEffectFactory.h"
10 #include "GrContext.h" 10 #include "GrContext.h"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 } 83 }
84 84
85 const char* GrEffect::name() const { 85 const char* GrEffect::name() const {
86 return this->getFactory().name(); 86 return this->getFactory().name();
87 } 87 }
88 88
89 void GrEffect::addTextureAccess(const GrTextureAccess* access) { 89 void GrEffect::addTextureAccess(const GrTextureAccess* access) {
90 fTextureAccesses.push_back(access); 90 fTextureAccesses.push_back(access);
91 } 91 }
92 92
93 void GrEffect::addVertexAttrib(GrSLType type) {
94 GrAssert(fVertexAttribTypes.count() < kMaxVertexAttribs);
95 fVertexAttribTypes.push_back(type);
96 }
97
93 void* GrEffect::operator new(size_t size) { 98 void* GrEffect::operator new(size_t size) {
94 return GrEffect_Globals::GetTLS()->allocate(size); 99 return GrEffect_Globals::GetTLS()->allocate(size);
95 } 100 }
96 101
97 void GrEffect::operator delete(void* target) { 102 void GrEffect::operator delete(void* target) {
98 GrEffect_Globals::GetTLS()->release(target); 103 GrEffect_Globals::GetTLS()->release(target);
99 } 104 }
OLDNEW
« no previous file with comments | « src/gpu/GrDrawTarget.cpp ('k') | src/gpu/GrSWMaskHelper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698