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

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

Issue 1388113002: Bye bye processor data manager (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: remove files Created 5 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 | « src/gpu/effects/GrSingleTextureEffect.h ('k') | src/gpu/effects/GrTextureDomain.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(GrProcessorDataManager* procDataMan ager, 10 GrSingleTextureEffect::GrSingleTextureEffect(GrTexture* texture,
11 GrTexture* texture,
12 const SkMatrix& m, 11 const SkMatrix& m,
13 GrCoordSet coordSet) 12 GrCoordSet coordSet)
14 : fCoordTransform(coordSet, m, texture, GrTextureParams::kNone_FilterMode) 13 : fCoordTransform(coordSet, m, texture, GrTextureParams::kNone_FilterMode)
15 , fTextureAccess(texture) { 14 , fTextureAccess(texture) {
16 this->addCoordTransform(&fCoordTransform); 15 this->addCoordTransform(&fCoordTransform);
17 this->addTextureAccess(&fTextureAccess); 16 this->addTextureAccess(&fTextureAccess);
18 } 17 }
19 18
20 GrSingleTextureEffect::GrSingleTextureEffect(GrProcessorDataManager* procDataMan ager, 19 GrSingleTextureEffect::GrSingleTextureEffect(GrTexture* texture,
21 GrTexture* texture,
22 const SkMatrix& m, 20 const SkMatrix& m,
23 GrTextureParams::FilterMode filterM ode, 21 GrTextureParams::FilterMode filterM ode,
24 GrCoordSet coordSet) 22 GrCoordSet coordSet)
25 : fCoordTransform(coordSet, m, texture, filterMode) 23 : fCoordTransform(coordSet, m, texture, filterMode)
26 , fTextureAccess(texture, filterMode) { 24 , fTextureAccess(texture, filterMode) {
27 this->addCoordTransform(&fCoordTransform); 25 this->addCoordTransform(&fCoordTransform);
28 this->addTextureAccess(&fTextureAccess); 26 this->addTextureAccess(&fTextureAccess);
29 } 27 }
30 28
31 GrSingleTextureEffect::GrSingleTextureEffect(GrProcessorDataManager* procDataMan ager, 29 GrSingleTextureEffect::GrSingleTextureEffect(GrTexture* texture,
32 GrTexture* texture,
33 const SkMatrix& m, 30 const SkMatrix& m,
34 const GrTextureParams& params, 31 const GrTextureParams& params,
35 GrCoordSet coordSet) 32 GrCoordSet coordSet)
36 : fCoordTransform(coordSet, m, texture, params.filterMode()) 33 : fCoordTransform(coordSet, m, texture, params.filterMode())
37 , fTextureAccess(texture, params) { 34 , fTextureAccess(texture, params) {
38 this->addCoordTransform(&fCoordTransform); 35 this->addCoordTransform(&fCoordTransform);
39 this->addTextureAccess(&fTextureAccess); 36 this->addTextureAccess(&fTextureAccess);
40 } 37 }
41 38
42 GrSingleTextureEffect::~GrSingleTextureEffect() { 39 GrSingleTextureEffect::~GrSingleTextureEffect() {
43 } 40 }
OLDNEW
« no previous file with comments | « src/gpu/effects/GrSingleTextureEffect.h ('k') | src/gpu/effects/GrTextureDomain.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698