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

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

Issue 1202293002: Move GLSL-specific routines/classes to separate glsl directory (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rename GrGLGLSL.{cpp,h} Created 5 years, 6 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/GrConstColorProcessor.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 "GrBitmapTextGeoProc.h" 8 #include "GrBitmapTextGeoProc.h"
9 #include "GrFontAtlasSizes.h" 9 #include "GrFontAtlasSizes.h"
10 #include "GrInvariantOutput.h" 10 #include "GrInvariantOutput.h"
11 #include "GrTexture.h" 11 #include "GrTexture.h"
12 #include "gl/GrGLProcessor.h" 12 #include "gl/GrGLProcessor.h"
13 #include "gl/GrGLSL.h"
14 #include "gl/GrGLTexture.h" 13 #include "gl/GrGLTexture.h"
15 #include "gl/GrGLGeometryProcessor.h" 14 #include "gl/GrGLGeometryProcessor.h"
16 #include "gl/builders/GrGLProgramBuilder.h" 15 #include "gl/builders/GrGLProgramBuilder.h"
17 16
18 class GrGLBitmapTextGeoProc : public GrGLGeometryProcessor { 17 class GrGLBitmapTextGeoProc : public GrGLGeometryProcessor {
19 public: 18 public:
20 GrGLBitmapTextGeoProc(const GrGeometryProcessor&, const GrBatchTracker&) 19 GrGLBitmapTextGeoProc(const GrGeometryProcessor&, const GrBatchTracker&)
21 : fColor(GrColor_ILLEGAL) {} 20 : fColor(GrColor_ILLEGAL) {}
22 21
23 void onEmitCode(EmitArgs& args, GrGPArgs* gpArgs) override{ 22 void onEmitCode(EmitArgs& args, GrGPArgs* gpArgs) override{
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 format = kA565_GrMaskFormat; 181 format = kA565_GrMaskFormat;
183 break; 182 break;
184 case 2: 183 case 2:
185 format = kARGB_GrMaskFormat; 184 format = kARGB_GrMaskFormat;
186 break; 185 break;
187 } 186 }
188 187
189 return GrBitmapTextGeoProc::Create(GrRandomColor(random), textures[texIdx], params, 188 return GrBitmapTextGeoProc::Create(GrRandomColor(random), textures[texIdx], params,
190 format, GrTest::TestMatrix(random), rando m->nextBool()); 189 format, GrTest::TestMatrix(random), rando m->nextBool());
191 } 190 }
OLDNEW
« no previous file with comments | « src/gpu/effects/GrBezierEffect.cpp ('k') | src/gpu/effects/GrConstColorProcessor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698