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

Unified Diff: webkit/port/platform/graphics/skia/public/VectorCanvas.h

Issue 11568: Move skia extensions from the port to skia/ext. (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
Index: webkit/port/platform/graphics/skia/public/VectorCanvas.h
===================================================================
--- webkit/port/platform/graphics/skia/public/VectorCanvas.h (revision 5845)
+++ webkit/port/platform/graphics/skia/public/VectorCanvas.h (working copy)
@@ -1,46 +0,0 @@
-// Copyright (c) 2006-2008 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.
-
-#ifndef BASE_GFX_VECTOR_CANVAS_H_
-#define BASE_GFX_VECTOR_CANVAS_H_
-
-#include "base/gfx/platform_canvas_win.h"
-#include "base/gfx/vector_device.h"
-
-namespace gfx {
-
-// This class is a specialization of the regular PlatformCanvas. It is designed
-// to work with a VectorDevice to manage platform-specific drawing. It allows
-// using both Skia operations and platform-specific operations. It *doesn't*
-// support reading back from the bitmap backstore since it is not used.
-class VectorCanvas : public PlatformCanvasWin {
- public:
- VectorCanvas();
- VectorCanvas(HDC dc, int width, int height);
- virtual ~VectorCanvas();
-
- // For two-part init, call if you use the no-argument constructor above
- bool initialize(HDC context, int width, int height);
-
- virtual SkBounder* setBounder(SkBounder*);
- virtual SkDevice* createDevice(SkBitmap::Config config,
- int width, int height,
- bool is_opaque, bool isForLayer);
- virtual SkDrawFilter* setDrawFilter(SkDrawFilter* filter);
-
- private:
- // |is_opaque| is unused. |shared_section| is in fact the HDC used for output.
- virtual SkDevice* createPlatformDevice(int width, int height, bool is_opaque,
- HANDLE shared_section);
-
- // Returns true if the top device is vector based and not bitmap based.
- bool IsTopDeviceVectorial() const;
-
- DISALLOW_COPY_AND_ASSIGN(VectorCanvas);
-};
-
-} // namespace gfx
-
-#endif // BASE_GFX_VECTOR_CANVAS_H_
-

Powered by Google App Engine
This is Rietveld 408576698