OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_PLATFORM_DEVICE_SKIA_H_ | 5 #ifndef SKIA_EXT_VECTOR_PLATFORM_DEVICE_SKIA_H_ |
6 #define SKIA_EXT_VECTOR_PLATFORM_DEVICE_SKIA_H_ | 6 #define SKIA_EXT_VECTOR_PLATFORM_DEVICE_SKIA_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "skia/ext/platform_device.h" | 11 #include "skia/ext/platform_device.h" |
12 #include "third_party/skia/include/core/SkRefCnt.h" | 12 #include "third_party/skia/include/core/SkRefCnt.h" |
13 #include "third_party/skia/include/core/SkTScopedPtr.h" | 13 #include "third_party/skia/include/core/SkTScopedPtr.h" |
14 #include "third_party/skia/include/pdf/SkPDFDevice.h" | 14 #include "third_party/skia/include/pdf/SkPDFDevice.h" |
15 | 15 |
16 class SkClipStack; | |
17 class SkMatrix; | 16 class SkMatrix; |
18 struct SkIRect; | |
19 struct SkRect; | |
20 | 17 |
21 namespace skia { | 18 namespace skia { |
22 | 19 |
23 class BitmapPlatformDevice; | 20 class BitmapPlatformDevice; |
24 | 21 |
25 class VectorPlatformDeviceSkia : public PlatformDevice, public SkPDFDevice { | 22 class VectorPlatformDeviceSkia : public PlatformDevice, public SkPDFDevice { |
26 public: | 23 public: |
27 SK_API VectorPlatformDeviceSkia(const SkISize& pageSize, | 24 SK_API VectorPlatformDeviceSkia(const SkISize& pageSize, |
28 const SkISize& contentSize, | 25 const SkISize& contentSize, |
29 const SkMatrix& initialTransform); | 26 const SkMatrix& initialTransform); |
(...skipping 17 matching lines...) Expand all Loading... |
47 | 44 |
48 private: | 45 private: |
49 SkRefPtr<BitmapPlatformDevice> raster_surface_; | 46 SkRefPtr<BitmapPlatformDevice> raster_surface_; |
50 | 47 |
51 DISALLOW_COPY_AND_ASSIGN(VectorPlatformDeviceSkia); | 48 DISALLOW_COPY_AND_ASSIGN(VectorPlatformDeviceSkia); |
52 }; | 49 }; |
53 | 50 |
54 } // namespace skia | 51 } // namespace skia |
55 | 52 |
56 #endif // SKIA_EXT_VECTOR_PLATFORM_DEVICE_SKIA_H_ | 53 #endif // SKIA_EXT_VECTOR_PLATFORM_DEVICE_SKIA_H_ |
OLD | NEW |