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

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

Issue 576543005: Breaking out full program and frag only (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 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
« no previous file with comments | « src/gpu/effects/GrBezierEffect.cpp ('k') | src/gpu/effects/GrDashingEffect.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 2013 Google Inc. 2 * Copyright 2013 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 "gl/builders/GrGLProgramBuilder.h"
9 #include "GrCustomCoordsTextureEffect.h" 8 #include "GrCustomCoordsTextureEffect.h"
9 #include "gl/builders/GrGLFullProgramBuilder.h"
10 #include "gl/GrGLEffect.h" 10 #include "gl/GrGLEffect.h"
11 #include "gl/GrGLSL.h" 11 #include "gl/GrGLSL.h"
12 #include "gl/GrGLTexture.h" 12 #include "gl/GrGLTexture.h"
13 #include "gl/GrGLGeometryProcessor.h" 13 #include "gl/GrGLGeometryProcessor.h"
14 #include "GrTBackendEffectFactory.h" 14 #include "GrTBackendEffectFactory.h"
15 #include "GrTexture.h" 15 #include "GrTexture.h"
16 16
17 class GrGLCustomCoordsTextureEffect : public GrGLGeometryProcessor { 17 class GrGLCustomCoordsTextureEffect : public GrGLGeometryProcessor {
18 public: 18 public:
19 GrGLCustomCoordsTextureEffect(const GrBackendEffectFactory& factory, const G rEffect& effect) 19 GrGLCustomCoordsTextureEffect(const GrBackendEffectFactory& factory, const G rEffect& effect)
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 }; 103 };
104 SkShader::TileMode tileModes[] = { 104 SkShader::TileMode tileModes[] = {
105 kTileModes[random->nextULessThan(SK_ARRAY_COUNT(kTileModes))], 105 kTileModes[random->nextULessThan(SK_ARRAY_COUNT(kTileModes))],
106 kTileModes[random->nextULessThan(SK_ARRAY_COUNT(kTileModes))], 106 kTileModes[random->nextULessThan(SK_ARRAY_COUNT(kTileModes))],
107 }; 107 };
108 GrTextureParams params(tileModes, random->nextBool() ? GrTextureParams::kBil erp_FilterMode : 108 GrTextureParams params(tileModes, random->nextBool() ? GrTextureParams::kBil erp_FilterMode :
109 GrTextureParams::kNon e_FilterMode); 109 GrTextureParams::kNon e_FilterMode);
110 110
111 return GrCustomCoordsTextureEffect::Create(textures[texIdx], params); 111 return GrCustomCoordsTextureEffect::Create(textures[texIdx], params);
112 } 112 }
OLDNEW
« no previous file with comments | « src/gpu/effects/GrBezierEffect.cpp ('k') | src/gpu/effects/GrDashingEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698