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

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

Issue 6682011: Build skia as a dll in windows multi-dll build. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Fix lint error. Created 9 years, 9 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_win.h ('k') | skia/skia.gyp » ('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 #include "skia/ext/vector_platform_device.h" 10 #include "skia/ext/vector_platform_device.h"
11 11
12 #if defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__) 12 #if defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__)
13 typedef struct _cairo cairo_t; 13 typedef struct _cairo cairo_t;
14 #endif 14 #endif
15 15
16 namespace skia { 16 namespace skia {
17 17
18 // This class is a specialization of the regular PlatformCanvas. It is designed 18 // This class is a specialization of the regular PlatformCanvas. It is designed
19 // to work with a VectorDevice to manage platform-specific drawing. It allows 19 // to work with a VectorDevice to manage platform-specific drawing. It allows
20 // using both Skia operations and platform-specific operations. It *doesn't* 20 // using both Skia operations and platform-specific operations. It *doesn't*
21 // support reading back from the bitmap backstore since it is not used. 21 // support reading back from the bitmap backstore since it is not used.
22 class VectorCanvas : public PlatformCanvas { 22 class SK_API VectorCanvas : public PlatformCanvas {
23 public: 23 public:
24 VectorCanvas(); 24 VectorCanvas();
25 explicit VectorCanvas(SkDeviceFactory* factory); 25 explicit VectorCanvas(SkDeviceFactory* factory);
26 #if defined(WIN32) 26 #if defined(WIN32)
27 VectorCanvas(HDC dc, int width, int height); 27 VectorCanvas(HDC dc, int width, int height);
28 #elif defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__) 28 #elif defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__)
29 // Caller owns |context|. Ownership is not transferred. 29 // Caller owns |context|. Ownership is not transferred.
30 VectorCanvas(cairo_t* context, int width, int height); 30 VectorCanvas(cairo_t* context, int width, int height);
31 #endif 31 #endif
32 virtual ~VectorCanvas(); 32 virtual ~VectorCanvas();
(...skipping 15 matching lines...) Expand all
48 48
49 // Copy & assign are not supported. 49 // Copy & assign are not supported.
50 VectorCanvas(const VectorCanvas&); 50 VectorCanvas(const VectorCanvas&);
51 const VectorCanvas& operator=(const VectorCanvas&); 51 const VectorCanvas& operator=(const VectorCanvas&);
52 }; 52 };
53 53
54 } // namespace skia 54 } // namespace skia
55 55
56 #endif // SKIA_EXT_VECTOR_CANVAS_H_ 56 #endif // SKIA_EXT_VECTOR_CANVAS_H_
57 57
OLDNEW
« no previous file with comments | « skia/ext/skia_utils_win.h ('k') | skia/skia.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698