summaryrefslogtreecommitdiffstats
path: root/base/gfx
diff options
context:
space:
mode:
authorbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-26 23:19:25 +0000
committerbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-26 23:19:25 +0000
commit49a14c715d3f404e1b54f3ca23c806e8ae22ab8a (patch)
tree2509282cd455cb059eaa49b392820ef07c2918de /base/gfx
parentfb2c5884aed83a46874cc18828510e41c7e7cc9b (diff)
downloadchromium_src-49a14c715d3f404e1b54f3ca23c806e8ae22ab8a.zip
chromium_src-49a14c715d3f404e1b54f3ca23c806e8ae22ab8a.tar.gz
chromium_src-49a14c715d3f404e1b54f3ca23c806e8ae22ab8a.tar.bz2
Fix the mac compile by removing the unnecessary setDeviceOffset function.
Review URL: http://codereview.chromium.org/5020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2652 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/gfx')
-rwxr-xr-xbase/gfx/bitmap_platform_device_mac.h1
-rwxr-xr-xbase/gfx/platform_canvas_mac.cc1
-rwxr-xr-xbase/gfx/platform_device_mac.h11
3 files changed, 0 insertions, 13 deletions
diff --git a/base/gfx/bitmap_platform_device_mac.h b/base/gfx/bitmap_platform_device_mac.h
index a22483e..fdbe2e4 100755
--- a/base/gfx/bitmap_platform_device_mac.h
+++ b/base/gfx/bitmap_platform_device_mac.h
@@ -57,7 +57,6 @@ class BitmapPlatformDeviceMac : public PlatformDeviceMac {
virtual CGContextRef GetBitmapContext();
virtual void SetTransform(const SkMatrix& matrix);
- virtual void SetDeviceOffset(int x, int y);
// This currently only supports extremely simple clip rects.
virtual void SetClipRegion(const SkRegion& region);
diff --git a/base/gfx/platform_canvas_mac.cc b/base/gfx/platform_canvas_mac.cc
index f8f0970..ef06e0e 100755
--- a/base/gfx/platform_canvas_mac.cc
+++ b/base/gfx/platform_canvas_mac.cc
@@ -102,7 +102,6 @@ int PlatformCanvasMac::saveLayer(const SkRect* bounds,
// There man not actually be a new layer if the layer is empty.
if (!iter.done()) {
- new_device.SetDeviceOffset(iter.x(), iter.y());
new_device.SetTransform(getTotalMatrix());
new_device.SetClipRegion(getTotalClip());
}
diff --git a/base/gfx/platform_device_mac.h b/base/gfx/platform_device_mac.h
index 69eac95..590cd24 100755
--- a/base/gfx/platform_device_mac.h
+++ b/base/gfx/platform_device_mac.h
@@ -31,17 +31,6 @@ class PlatformDeviceMac : public SkDevice {
// override any previous calls to this function.
virtual void SetTransform(const SkMatrix& matrix) = 0;
- // Devices may be in a layer and offset from the root device. In this case,
- // the transform (set by setTransform) will corrspond to the root device, and
- // this device will actually be offset from there.
- //
- // This is called after a layered device is created to tell us the location.
- // This location will be factored into any transforms applied via
- // setTransform.
- //
- // If this function is not called, the offset defaults to (0, 0);
- virtual void SetDeviceOffset(int x, int y) = 0;
-
// Sets the clipping region, overriding any previous calls.
virtual void SetClipRegion(const SkRegion& region) = 0;