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

Side by Side Diff: src/gpu/effects/GrSingleTextureEffect.cpp

Issue 12531015: Adds local coords to GrEffect system. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: 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/effects/GrSingleTextureEffect.h ('k') | src/gpu/effects/GrTextureDomainEffect.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 "effects/GrSingleTextureEffect.h" 8 #include "effects/GrSingleTextureEffect.h"
9 9
10 GrSingleTextureEffect::GrSingleTextureEffect(GrTexture* texture, const SkMatrix& m) 10 GrSingleTextureEffect::GrSingleTextureEffect(GrTexture* texture,
11 const SkMatrix& m,
12 CoordsType coordsType)
11 : fTextureAccess(texture) 13 : fTextureAccess(texture)
12 , fMatrix(m) { 14 , fMatrix(m)
13 this->addTextureAccess(&fTextureAccess); 15 , fCoordsType(coordsType) {
14 }
15
16 GrSingleTextureEffect::GrSingleTextureEffect(GrTexture* texture, const SkMatrix& m, bool bilerp)
17 : fTextureAccess(texture, bilerp)
18 , fMatrix(m) {
19 this->addTextureAccess(&fTextureAccess); 16 this->addTextureAccess(&fTextureAccess);
20 } 17 }
21 18
22 GrSingleTextureEffect::GrSingleTextureEffect(GrTexture* texture, 19 GrSingleTextureEffect::GrSingleTextureEffect(GrTexture* texture,
23 const SkMatrix& m, 20 const SkMatrix& m,
24 const GrTextureParams& params) 21 bool bilerp,
25 : fTextureAccess(texture, params) 22 CoordsType coordsType)
26 , fMatrix(m) { 23 : fTextureAccess(texture, bilerp)
24 , fMatrix(m)
25 , fCoordsType(coordsType) {
27 this->addTextureAccess(&fTextureAccess); 26 this->addTextureAccess(&fTextureAccess);
28 } 27 }
29 28
29 GrSingleTextureEffect::GrSingleTextureEffect(GrTexture* texture,
30 const SkMatrix& m,
31 const GrTextureParams& params,
32 CoordsType coordsType)
33 : fTextureAccess(texture, params)
34 , fMatrix(m)
35 , fCoordsType(coordsType) {
36 this->addTextureAccess(&fTextureAccess);
37 }
38
30 GrSingleTextureEffect::~GrSingleTextureEffect() { 39 GrSingleTextureEffect::~GrSingleTextureEffect() {
31 } 40 }
OLDNEW
« no previous file with comments | « src/gpu/effects/GrSingleTextureEffect.h ('k') | src/gpu/effects/GrTextureDomainEffect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698