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

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

Issue 1306733007: Re-enable nvpr text rendering in DM. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 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 | « dm/DM.cpp ('k') | no next file » | 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 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 GR_STATIC_CONST_SAME_STENCIL(kStencilPass, 436 GR_STATIC_CONST_SAME_STENCIL(kStencilPass,
437 kZero_StencilOp, 437 kZero_StencilOp,
438 kKeep_StencilOp, 438 kKeep_StencilOp,
439 kNotEqual_StencilFunc, 439 kNotEqual_StencilFunc,
440 0xffff, 440 0xffff,
441 0x0000, 441 0x0000,
442 0xffff); 442 0xffff);
443 443
444 *pipelineBuilder.stencil() = kStencilPass; 444 *pipelineBuilder.stencil() = kStencilPass;
445 445
446 SkASSERT(0 == fQueuedGlyphCount);
447 SkASSERT(kGlyphBufferSize == fFallbackGlyphsIdx); 446 SkASSERT(kGlyphBufferSize == fFallbackGlyphsIdx);
448 447
449 dc->drawPaths(&pipelineBuilder, pp, fGlyphs, 448 dc->drawPaths(&pipelineBuilder, pp, fGlyphs,
450 fGlyphIndices, GrPathRange::kU16_PathIndexType, 449 fGlyphIndices, GrPathRange::kU16_PathIndexType,
451 get_xy_scalar_array(fGlyphPositions), 450 get_xy_scalar_array(fGlyphPositions),
452 GrPathRendering::kTranslate_PathTransformType, 451 GrPathRendering::kTranslate_PathTransformType,
453 fQueuedGlyphCount, GrPathRendering::kWinding_FillType); 452 fQueuedGlyphCount, GrPathRendering::kWinding_FillType);
454 453
455 fQueuedGlyphCount = 0; 454 fQueuedGlyphCount = 0;
456 } 455 }
(...skipping 30 matching lines...) Expand all
487 486
488 fGlyphs->unref(); 487 fGlyphs->unref();
489 fGlyphs = nullptr; 488 fGlyphs = nullptr;
490 489
491 SkGlyphCache::AttachCache(fGlyphCache); 490 SkGlyphCache::AttachCache(fGlyphCache);
492 fGlyphCache = nullptr; 491 fGlyphCache = nullptr;
493 492
494 fViewMatrix = fContextInitialMatrix; 493 fViewMatrix = fContextInitialMatrix;
495 } 494 }
496 495
OLDNEW
« no previous file with comments | « dm/DM.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698