OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |