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

Side by Side Diff: skia/ext/vector_canvas.h

Issue 7019013: Removal of dependencies on PlatformDevice classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Syncing merge conflicts. Created 9 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « skia/ext/skia_utils_mac.mm ('k') | skia/ext/vector_canvas.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SKIA_EXT_VECTOR_CANVAS_H_ 5 #ifndef SKIA_EXT_VECTOR_CANVAS_H_
6 #define SKIA_EXT_VECTOR_CANVAS_H_ 6 #define SKIA_EXT_VECTOR_CANVAS_H_
7 #pragma once 7 #pragma once
8 8
9 #include "skia/ext/platform_canvas.h" 9 #include "skia/ext/platform_canvas.h"
10 10
11 class SkDevice;
12
11 namespace skia { 13 namespace skia {
12 14
13 class PlatformDevice;
14
15 // This class is a specialization of the regular PlatformCanvas. It is designed 15 // This class is a specialization of the regular PlatformCanvas. It is designed
16 // to work with a VectorDevice to manage platform-specific drawing. It allows 16 // to work with a VectorDevice to manage platform-specific drawing. It allows
17 // using both Skia operations and platform-specific operations. It *doesn't* 17 // using both Skia operations and platform-specific operations. It *doesn't*
18 // support reading back from the bitmap backstore since it is not used. 18 // support reading back from the bitmap backstore since it is not used.
19 class SK_API VectorCanvas : public PlatformCanvas { 19 class SK_API VectorCanvas : public PlatformCanvas {
20 public: 20 public:
21 // Ownership of |device| is transfered to VectorCanvas. 21 // Ownership of |device| is transfered to VectorCanvas.
22 explicit VectorCanvas(PlatformDevice* device); 22 explicit VectorCanvas(SkDevice* device);
23 virtual ~VectorCanvas(); 23 virtual ~VectorCanvas();
24 24
25 virtual SkBounder* setBounder(SkBounder* bounder); 25 virtual SkBounder* setBounder(SkBounder* bounder);
26 virtual SkDrawFilter* setDrawFilter(SkDrawFilter* filter); 26 virtual SkDrawFilter* setDrawFilter(SkDrawFilter* filter);
27 27
28 private: 28 private:
29 // Returns true if the top device is vector based and not bitmap based. 29 // Returns true if the top device is vector based and not bitmap based.
30 bool IsTopDeviceVectorial() const; 30 bool IsTopDeviceVectorial() const;
31 31
32 // Copy & assign are not supported. 32 // Copy & assign are not supported.
33 VectorCanvas(const VectorCanvas&); 33 VectorCanvas(const VectorCanvas&);
34 const VectorCanvas& operator=(const VectorCanvas&); 34 const VectorCanvas& operator=(const VectorCanvas&);
35 }; 35 };
36 36
37 } // namespace skia 37 } // namespace skia
38 38
39 #endif // SKIA_EXT_VECTOR_CANVAS_H_ 39 #endif // SKIA_EXT_VECTOR_CANVAS_H_
40 40
OLDNEW
« no previous file with comments | « skia/ext/skia_utils_mac.mm ('k') | skia/ext/vector_canvas.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698