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

Unified Diff: skia/ext/vector_platform_device_linux.h

Issue 6081007: Start sorting methods in class declarations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 9 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « skia/ext/platform_canvas.h ('k') | webkit/plugins/npapi/plugin_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/vector_platform_device_linux.h
diff --git a/skia/ext/vector_platform_device_linux.h b/skia/ext/vector_platform_device_linux.h
index 1cf8a0c551dc152359ffb427ab0d9c90d262585c..eb767ccafbaa4bcc97fe5883bf8e62417cfecb5d 100644
--- a/skia/ext/vector_platform_device_linux.h
+++ b/skia/ext/vector_platform_device_linux.h
@@ -1,4 +1,4 @@
-// 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.
@@ -14,11 +14,12 @@ namespace skia {
class VectorPlatformDeviceFactory : public SkDeviceFactory {
public:
- virtual SkDevice* newDevice(SkBitmap::Config config, int width, int height,
- bool isOpaque, bool isForLayer);
-
static SkDevice* CreateDevice(cairo_t* context, int width, int height,
bool isOpaque);
+
+ // Overridden from SkDeviceFactory:
+ virtual SkDevice* newDevice(SkBitmap::Config config, int width, int height,
+ bool isOpaque, bool isForLayer);
};
// This device is basically a wrapper that provides a surface for SkCanvas
@@ -28,17 +29,23 @@ class VectorPlatformDeviceFactory : public SkDeviceFactory {
// meaningless.
class VectorPlatformDevice : public PlatformDevice {
public:
+ virtual ~VectorPlatformDevice();
+
// Factory function. Ownership of |context| is not transferred.
static VectorPlatformDevice* create(PlatformSurface context,
int width, int height);
- virtual ~VectorPlatformDevice();
+ // Clean up cached fonts. It is an error to call this while some
+ // VectorPlatformDevice callee is still using fonts created for it by this
+ // class.
+ static void ClearFontCache();
+
+ // Overridden from SkDevice (through PlatformDevice):
virtual SkDeviceFactory* getDeviceFactory();
+ // Overridden from PlatformDevice:
virtual bool IsVectorial();
virtual PlatformSurface beginPlatformPaint();
-
- // We translate following skia APIs into corresponding Cairo APIs.
virtual void drawBitmap(const SkDraw& draw, const SkBitmap& bitmap,
const SkMatrix& matrix, const SkPaint& paint);
virtual void drawDevice(const SkDraw& draw, SkDevice*, int x, int y,
@@ -69,11 +76,6 @@ class VectorPlatformDevice : public PlatformDevice {
virtual void setMatrixClip(const SkMatrix& transform,
const SkRegion& region);
- // Clean up cached fonts. It is an error to call this while some
- // VectorPlatformDevice callee is still using fonts created for it by this
- // class.
- static void ClearFontCache();
-
protected:
explicit VectorPlatformDevice(PlatformSurface context,
const SkBitmap& bitmap);
« no previous file with comments | « skia/ext/platform_canvas.h ('k') | webkit/plugins/npapi/plugin_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698