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

Side by Side Diff: src/gpu/text/GrAtlasTextBlob.cpp

Issue 2165283002: Remove DrawFace enum from GrPipelineBuilder (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: try again Created 4 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
« no previous file with comments | « src/gpu/instanced/InstancedRendering.cpp ('k') | src/gpu/text/GrBatchFontCache.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 2015 Google Inc. 2 * Copyright 2015 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 "GrAtlasTextBlob.h" 8 #include "GrAtlasTextBlob.h"
9 9
10 #include "GrBlurUtils.h" 10 #include "GrBlurUtils.h"
11 #include "GrContext.h" 11 #include "GrContext.h"
12 #include "GrDrawContext.h" 12 #include "GrDrawContext.h"
13 #include "GrPipelineBuilder.h"
13 #include "GrTextUtils.h" 14 #include "GrTextUtils.h"
14 #include "SkColorFilter.h" 15 #include "SkColorFilter.h"
15 #include "SkDrawFilter.h" 16 #include "SkDrawFilter.h"
16 #include "SkGlyphCache.h" 17 #include "SkGlyphCache.h"
17 #include "SkTextBlobRunIterator.h" 18 #include "SkTextBlobRunIterator.h"
18 #include "batches/GrAtlasTextBatch.h" 19 #include "batches/GrAtlasTextBatch.h"
19 20
20 GrAtlasTextBlob* GrAtlasTextBlob::Create(GrMemoryPool* pool, int glyphCount, int runCount) { 21 GrAtlasTextBlob* GrAtlasTextBlob::Create(GrMemoryPool* pool, int glyphCount, int runCount) {
21 // We allocate size for the GrAtlasTextBlob itself, plus size for the vertic es array, 22 // We allocate size for the GrAtlasTextBlob itself, plus size for the vertic es array,
22 // and size for the glyphIds array. 23 // and size for the glyphIds array.
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
558 559
559 void GrAtlasTextBlob::Run::SubRunInfo::computeTranslation(const SkMatrix& viewMa trix, 560 void GrAtlasTextBlob::Run::SubRunInfo::computeTranslation(const SkMatrix& viewMa trix,
560 SkScalar x, SkScalar y , SkScalar* transX, 561 SkScalar x, SkScalar y , SkScalar* transX,
561 SkScalar* transY) { 562 SkScalar* transY) {
562 calculate_translation(!this->drawAsDistanceFields(), viewMatrix, x, y, 563 calculate_translation(!this->drawAsDistanceFields(), viewMatrix, x, y,
563 fCurrentViewMatrix, fX, fY, transX, transY); 564 fCurrentViewMatrix, fX, fY, transX, transY);
564 fCurrentViewMatrix = viewMatrix; 565 fCurrentViewMatrix = viewMatrix;
565 fX = x; 566 fX = x;
566 fY = y; 567 fY = y;
567 } 568 }
OLDNEW
« no previous file with comments | « src/gpu/instanced/InstancedRendering.cpp ('k') | src/gpu/text/GrBatchFontCache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698