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

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

Issue 1255943006: Allow setting of GrBatchFontCache atlas sizes (Closed) Base URL: https://skia.googlesource.com/skia.git@debugatlas2
Patch Set: tweaks Created 5 years, 4 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/GrTest.cpp ('k') | src/gpu/effects/GrDistanceFieldGeoProc.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"
10 #include "GrInvariantOutput.h" 9 #include "GrInvariantOutput.h"
11 #include "GrTexture.h" 10 #include "GrTexture.h"
12 #include "gl/GrGLFragmentProcessor.h" 11 #include "gl/GrGLFragmentProcessor.h"
13 #include "gl/GrGLTexture.h" 12 #include "gl/GrGLTexture.h"
14 #include "gl/GrGLGeometryProcessor.h" 13 #include "gl/GrGLGeometryProcessor.h"
15 #include "gl/builders/GrGLProgramBuilder.h" 14 #include "gl/builders/GrGLProgramBuilder.h"
16 15
17 class GrGLBitmapTextGeoProc : public GrGLGeometryProcessor { 16 class GrGLBitmapTextGeoProc : public GrGLGeometryProcessor {
18 public: 17 public:
19 GrGLBitmapTextGeoProc(const GrGeometryProcessor&, const GrBatchTracker&) 18 GrGLBitmapTextGeoProc(const GrGeometryProcessor&, const GrBatchTracker&)
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 break; 184 break;
186 case 2: 185 case 2:
187 format = kARGB_GrMaskFormat; 186 format = kARGB_GrMaskFormat;
188 break; 187 break;
189 } 188 }
190 189
191 return GrBitmapTextGeoProc::Create(GrRandomColor(d->fRandom), d->fTextures[t exIdx], params, 190 return GrBitmapTextGeoProc::Create(GrRandomColor(d->fRandom), d->fTextures[t exIdx], params,
192 format, GrTest::TestMatrix(d->fRandom), 191 format, GrTest::TestMatrix(d->fRandom),
193 d->fRandom->nextBool()); 192 d->fRandom->nextBool());
194 } 193 }
OLDNEW
« no previous file with comments | « src/gpu/GrTest.cpp ('k') | src/gpu/effects/GrDistanceFieldGeoProc.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698