summaryrefslogtreecommitdiffstats
path: root/skia/ext/canvas_paint_linux.h
diff options
context:
space:
mode:
authortwiz@chromium.org <twiz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-16 22:11:10 +0000
committertwiz@chromium.org <twiz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-16 22:11:10 +0000
commita7d1dbe36a0b12a7cc3d025180bbdce6b8c0f567 (patch)
tree8fa7094ff44e5fc4a49ad55bed00ac1723a5411f /skia/ext/canvas_paint_linux.h
parent080440cebdc80def86dd88356e5922946cc11a79 (diff)
downloadchromium_src-a7d1dbe36a0b12a7cc3d025180bbdce6b8c0f567.zip
chromium_src-a7d1dbe36a0b12a7cc3d025180bbdce6b8c0f567.tar.gz
chromium_src-a7d1dbe36a0b12a7cc3d025180bbdce6b8c0f567.tar.bz2
Remove set of redundant API calls for PlatformDevice instances. These functions were duplicated for both SkCanvas and SkDevice instances.
This CL unifies these calls to only make use of the SkCanvas entries. This is CL part of a larger goal to remove the PlatformDevice class. BUG=None TEST=None Review URL: http://codereview.chromium.org/7168022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89410 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia/ext/canvas_paint_linux.h')
-rw-r--r--skia/ext/canvas_paint_linux.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/skia/ext/canvas_paint_linux.h b/skia/ext/canvas_paint_linux.h
index 608350f..fca12ca 100644
--- a/skia/ext/canvas_paint_linux.h
+++ b/skia/ext/canvas_paint_linux.h
@@ -1,5 +1,5 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -92,7 +92,7 @@ class CanvasPaintT : public T {
// surface.
T::translate(-SkIntToScalar(bounds.x), -SkIntToScalar(bounds.y));
- context_ = BeginPlatformPaint(GetTopDevice(*this));
+ context_ = BeginPlatformPaint(this);
}
cairo_t* context_;