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

Side by Side Diff: skia/ext/vector_platform_device_linux.cc

Issue 6588012: roll skia (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « skia/ext/vector_platform_device_linux.h ('k') | skia/ext/vector_platform_device_win.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 // 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
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
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
OLDNEW
« no previous file with comments | « skia/ext/vector_platform_device_linux.h ('k') | skia/ext/vector_platform_device_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698