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

Unified Diff: base/gfx/platform_canvas_linux.h

Issue 11244: Move PlatformCanvas and PlatformDevice from base/gfx to webkit/port. I left h... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 1 month 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 | « base/gfx/platform_canvas.h ('k') | base/gfx/platform_canvas_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/gfx/platform_canvas_linux.h
===================================================================
--- base/gfx/platform_canvas_linux.h (revision 5678)
+++ base/gfx/platform_canvas_linux.h (working copy)
@@ -5,47 +5,8 @@
#ifndef BASE_GFX_PLATFORM_CANVAS_LINUX_H_
#define BASE_GFX_PLATFORM_CANVAS_LINUX_H_
-#include "base/gfx/platform_device_linux.h"
-#include "base/basictypes.h"
+// TODO(brettw) this file should be removed and the includes changed to this
+// new location.
+#include "webkit/port/platform/graphics/skia/public/PlatformCanvasLinux.h"
-namespace gfx {
-
-// This class is a specialization of the regular SkCanvas that is designed to
-// work with a gfx::PlatformDevice to manage platform-specific drawing. It
-// allows using both Skia operations and platform-specific operations.
-class PlatformCanvasLinux : public SkCanvas {
- public:
- // Set is_opaque if you are going to erase the bitmap and not use
- // tranparency: this will enable some optimizations. The shared_section
- // parameter is passed to gfx::PlatformDevice::create. See it for details.
- //
- // If you use the version with no arguments, you MUST call initialize()
- PlatformCanvasLinux();
- PlatformCanvasLinux(int width, int height, bool is_opaque);
- virtual ~PlatformCanvasLinux();
-
- // For two-part init, call if you use the no-argument constructor above
- bool initialize(int width, int height, bool is_opaque);
-
- // Returns the platform device pointer of the topmost rect with a non-empty
- // clip. Both the windows and mac versions have an equivalent of this method;
- // a Linux version is added for compatibility.
- PlatformDeviceLinux& getTopPlatformDevice() const;
-
- protected:
- // Creates a device store for use by the canvas. We override this so that
- // the device is always our own so we know that we can use GDI operations
- // on it. Simply calls into createPlatformDevice().
- virtual SkDevice* createDevice(SkBitmap::Config, int width, int height,
- bool is_opaque, bool isForLayer);
-
- // Creates a device store for use by the canvas. By default, it creates a
- // BitmapPlatformDevice object. Can be overridden to change the object type.
- virtual SkDevice* createPlatformDevice(int width, int height, bool is_opaque);
-
- DISALLOW_COPY_AND_ASSIGN(PlatformCanvasLinux);
-};
-
-} // namespace gfx
-
#endif // BASE_GFX_PLATFORM_CANVAS_MAC_H_
« no previous file with comments | « base/gfx/platform_canvas.h ('k') | base/gfx/platform_canvas_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698