diff options
author | brettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-26 21:36:30 +0000 |
---|---|---|
committer | brettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-26 21:36:30 +0000 |
commit | 1bbe184ba49c0ac30d193777a16331b6baa4f104 (patch) | |
tree | 83147fb48675776649f8ffd357d721df0319e582 /base/gfx/vector_device.h | |
parent | 2b861aca51727686bca140800841a9bd29485a91 (diff) | |
download | chromium_src-1bbe184ba49c0ac30d193777a16331b6baa4f104.zip chromium_src-1bbe184ba49c0ac30d193777a16331b6baa4f104.tar.gz chromium_src-1bbe184ba49c0ac30d193777a16331b6baa4f104.tar.bz2 |
Remove setDeviceOffset which isn't used. Fixed a few style and line wrapping issues.
Review URL: http://codereview.chromium.org/5012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2644 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/gfx/vector_device.h')
-rw-r--r-- | base/gfx/vector_device.h | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/base/gfx/vector_device.h b/base/gfx/vector_device.h index 2d66d1a..5ebc558 100644 --- a/base/gfx/vector_device.h +++ b/base/gfx/vector_device.h @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#ifndef BASE_GFX_VECTOR_DEVICE_H__ -#define BASE_GFX_VECTOR_DEVICE_H__ +#ifndef BASE_GFX_VECTOR_DEVICE_H_ +#define BASE_GFX_VECTOR_DEVICE_H_ #include "base/basictypes.h" #include "base/gfx/platform_device_win.h" @@ -29,8 +29,8 @@ class VectorDevice : public PlatformDeviceWin { } virtual void drawPaint(const SkDraw& draw, const SkPaint& paint); - virtual void drawPoints(const SkDraw& draw, SkCanvas::PointMode mode, size_t count, - const SkPoint[], const SkPaint& paint); + virtual void drawPoints(const SkDraw& draw, SkCanvas::PointMode mode, + size_t count, const SkPoint[], const SkPaint& paint); virtual void drawRect(const SkDraw& draw, const SkRect& r, const SkPaint& paint); virtual void drawPath(const SkDraw& draw, const SkPath& path, @@ -47,7 +47,8 @@ class VectorDevice : public PlatformDeviceWin { virtual void drawTextOnPath(const SkDraw& draw, const void* text, size_t len, const SkPath& path, const SkMatrix* matrix, const SkPaint& paint); - virtual void drawVertices(const SkDraw& draw, SkCanvas::VertexMode, int vertexCount, + virtual void drawVertices(const SkDraw& draw, SkCanvas::VertexMode, + int vertexCount, const SkPoint verts[], const SkPoint texs[], const SkColor colors[], SkXfermode* xmode, const uint16_t indices[], int indexCount, @@ -57,7 +58,6 @@ class VectorDevice : public PlatformDeviceWin { virtual void setMatrixClip(const SkMatrix& transform, const SkRegion& region); - virtual void setDeviceOffset(int x, int y); virtual void drawToHDC(HDC dc, int x, int y, const RECT* src_rect); virtual bool IsVectorial() { return true; } @@ -110,13 +110,10 @@ class VectorDevice : public PlatformDeviceWin { // Previously selected pen before the current drawing. HGDIOBJ previous_pen_; - int offset_x_; - int offset_y_; - - DISALLOW_EVIL_CONSTRUCTORS(VectorDevice); + DISALLOW_COPY_AND_ASSIGN(VectorDevice); }; } // namespace gfx -#endif // BASE_GFX_VECTOR_DEVICE_H__ +#endif // BASE_GFX_VECTOR_DEVICE_H_ |