OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "skia/ext/vector_platform_device.h" | 5 #include "skia/ext/vector_platform_device.h" |
6 | 6 |
7 #include <cairo.h> | 7 #include <cairo.h> |
8 #include <cairo-ft.h> | 8 #include <cairo-ft.h> |
9 | 9 |
10 #include <ft2build.h> | 10 #include <ft2build.h> |
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
477 const SkColor colors[], | 477 const SkColor colors[], |
478 SkXfermode* xmode, | 478 SkXfermode* xmode, |
479 const uint16_t indices[], | 479 const uint16_t indices[], |
480 int indexCount, | 480 int indexCount, |
481 const SkPaint& paint) { | 481 const SkPaint& paint) { |
482 // This function isn't used in the code. Verify this assumption. | 482 // This function isn't used in the code. Verify this assumption. |
483 SkASSERT(false); | 483 SkASSERT(false); |
484 } | 484 } |
485 | 485 |
486 void VectorPlatformDevice::setMatrixClip(const SkMatrix& transform, | 486 void VectorPlatformDevice::setMatrixClip(const SkMatrix& transform, |
487 const SkRegion& region) { | 487 const SkRegion& region, |
| 488 const SkClipStack&) { |
488 clip_region_ = region; | 489 clip_region_ = region; |
489 if (!clip_region_.isEmpty()) | 490 if (!clip_region_.isEmpty()) |
490 LoadClipRegion(clip_region_); | 491 LoadClipRegion(clip_region_); |
491 | 492 |
492 transform_ = transform; | 493 transform_ = transform; |
493 LoadTransformToContext(transform_); | 494 LoadTransformToContext(transform_); |
494 } | 495 } |
495 | 496 |
496 void VectorPlatformDevice::ApplyPaintColor(const SkPaint& paint) { | 497 void VectorPlatformDevice::ApplyPaintColor(const SkPaint& paint) { |
497 SkColor color = paint.getColor(); | 498 SkColor color = paint.getColor(); |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
696 DCHECK(it->second.font_stream); | 697 DCHECK(it->second.font_stream); |
697 | 698 |
698 cairo_font_face_destroy(it->second.cairo_face); | 699 cairo_font_face_destroy(it->second.cairo_face); |
699 // |it->second.ft_face| is handled by Cairo. | 700 // |it->second.ft_face| is handled by Cairo. |
700 it->second.font_stream->unref(); | 701 it->second.font_stream->unref(); |
701 } | 702 } |
702 g_font_cache->clear(); | 703 g_font_cache->clear(); |
703 } | 704 } |
704 | 705 |
705 } // namespace skia | 706 } // namespace skia |
OLD | NEW |