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

Side by Side Diff: src/gpu/GrStencilAndCoverTextContext.cpp

Issue 1225923010: Refugee from Dead Machine 4: MDB Monster Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Last update from dead machine Created 4 years, 7 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/GrSWMaskHelper.cpp ('k') | src/gpu/GrStencilAttachment.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 2014 Google Inc. 2 * Copyright 2014 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 "GrStencilAndCoverTextContext.h" 8 #include "GrStencilAndCoverTextContext.h"
9 #include "GrAtlasTextContext.h" 9 #include "GrAtlasTextContext.h"
10 #include "GrDrawContext.h" 10 #include "GrDrawContext.h"
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 INHERITED::drawTextBlob(dc, rt, clip, skPaint, viewMatrix, skBlob, x, y, drawFilter, 122 INHERITED::drawTextBlob(dc, rt, clip, skPaint, viewMatrix, skBlob, x, y, drawFilter,
123 clipBounds); 123 clipBounds);
124 return; 124 return;
125 } 125 }
126 126
127 if (fContext->abandoned()) { 127 if (fContext->abandoned()) {
128 return; 128 return;
129 } 129 }
130 130
131 GrPaint paint; 131 GrPaint paint;
132 if (!SkPaintToGrPaint(fContext, skPaint, viewMatrix, &paint)) { 132 if (!SkPaintToGrPaint(fContext, skPaint, viewMatrix, &paint, NULL)) {
133 return; 133 return;
134 } 134 }
135 135
136 const TextBlob& blob = this->findOrCreateTextBlob(skBlob, skPaint); 136 const TextBlob& blob = this->findOrCreateTextBlob(skBlob, skPaint);
137 GrPipelineBuilder pipelineBuilder(paint, rt, clip); 137 GrPipelineBuilder pipelineBuilder(paint, rt, clip);
138 138
139 TextBlob::Iter iter(blob); 139 TextBlob::Iter iter(blob);
140 for (TextRun* run = iter.get(); run; run = iter.next()) { 140 for (TextRun* run = iter.get(); run; run = iter.next()) {
141 run->draw(fContext, dc, &pipelineBuilder, paint.getColor(), viewMatrix, x, y, clipBounds, 141 run->draw(fContext, dc, &pipelineBuilder, paint.getColor(), viewMatrix, x, y, clipBounds,
142 fFallbackTextContext, skPaint); 142 fFallbackTextContext, skPaint);
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
601 fBuffIdx = 0; 601 fBuffIdx = 0;
602 } 602 }
603 603
604 const SkTextBlob* GrStencilAndCoverTextContext::FallbackBlobBuilder::buildIfInit ialized() { 604 const SkTextBlob* GrStencilAndCoverTextContext::FallbackBlobBuilder::buildIfInit ialized() {
605 if (!this->isInitialized()) { 605 if (!this->isInitialized()) {
606 return nullptr; 606 return nullptr;
607 } 607 }
608 this->flush(); 608 this->flush();
609 return fBuilder->build(); 609 return fBuilder->build();
610 } 610 }
OLDNEW
« no previous file with comments | « src/gpu/GrSWMaskHelper.cpp ('k') | src/gpu/GrStencilAttachment.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698