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

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

Issue 20362002: make the filter mode for GrTextureAccess an enum so we can plumb down (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: fall back to mipmaps for HQ sampling (for now) Created 7 years, 5 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, 10 GrSingleTextureEffect::GrSingleTextureEffect(GrTexture* texture,
11 const SkMatrix& m, 11 const SkMatrix& m,
12 CoordsType coordsType) 12 CoordsType coordsType)
13 : fTextureAccess(texture) 13 : fTextureAccess(texture)
14 , fMatrix(m) 14 , fMatrix(m)
15 , fCoordsType(coordsType) { 15 , fCoordsType(coordsType) {
16 this->addTextureAccess(&fTextureAccess); 16 this->addTextureAccess(&fTextureAccess);
17 } 17 }
18 18
19 GrSingleTextureEffect::GrSingleTextureEffect(GrTexture* texture, 19 GrSingleTextureEffect::GrSingleTextureEffect(GrTexture* texture,
20 const SkMatrix& m, 20 const SkMatrix& m,
21 bool bilerp, 21 GrTextureParams::FilterMode filterM ode,
22 CoordsType coordsType) 22 CoordsType coordsType)
23 : fTextureAccess(texture, bilerp) 23 : fTextureAccess(texture, filterMode)
24 , fMatrix(m) 24 , fMatrix(m)
25 , fCoordsType(coordsType) { 25 , fCoordsType(coordsType) {
26 this->addTextureAccess(&fTextureAccess); 26 this->addTextureAccess(&fTextureAccess);
27 } 27 }
28 28
29 GrSingleTextureEffect::GrSingleTextureEffect(GrTexture* texture, 29 GrSingleTextureEffect::GrSingleTextureEffect(GrTexture* texture,
30 const SkMatrix& m, 30 const SkMatrix& m,
31 const GrTextureParams& params, 31 const GrTextureParams& params,
32 CoordsType coordsType) 32 CoordsType coordsType)
33 : fTextureAccess(texture, params) 33 : fTextureAccess(texture, params)
34 , fMatrix(m) 34 , fMatrix(m)
35 , fCoordsType(coordsType) { 35 , fCoordsType(coordsType) {
36 this->addTextureAccess(&fTextureAccess); 36 this->addTextureAccess(&fTextureAccess);
37 } 37 }
38 38
39 GrSingleTextureEffect::~GrSingleTextureEffect() { 39 GrSingleTextureEffect::~GrSingleTextureEffect() {
40 } 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