Chromium Code Reviews| Index: skia/ext/vector_platform_device_skia.h |
| diff --git a/skia/ext/vector_platform_device_skia.h b/skia/ext/vector_platform_device_skia.h |
| index 38cf0c544cae8cca7e28bb881459f73fe2035e6b..13b999f70ee20cbca0a0310115f32d1b3b44a228 100644 |
| --- a/skia/ext/vector_platform_device_skia.h |
| +++ b/skia/ext/vector_platform_device_skia.h |
| @@ -9,12 +9,12 @@ |
| #include "base/basictypes.h" |
| #include "base/logging.h" |
| #include "skia/ext/platform_device.h" |
| -#include "third_party/skia/include/core/SkMatrix.h" |
| #include "third_party/skia/include/core/SkRefCnt.h" |
| #include "third_party/skia/include/core/SkTScopedPtr.h" |
| #include "third_party/skia/include/pdf/SkPDFDevice.h" |
| class SkClipStack; |
| +class SkMatrix; |
| struct SkIRect; |
| struct SkRect; |
| @@ -31,8 +31,7 @@ class VectorPlatformDeviceSkiaFactory : public SkDeviceFactory { |
| class VectorPlatformDeviceSkia : public PlatformDevice { |
| public: |
| - VectorPlatformDeviceSkia(int width, int height, |
| - SkPDFDevice::OriginTransform flip); |
| + VectorPlatformDeviceSkia(int width, int height, SkMatrix* initialTransform); |
|
alokp
2011/04/11 17:30:12
may be use const SkMatrix*, but if there is a fast
vandebo (ex-Chrome)
2011/04/11 21:51:31
Changed to const SkMatrix&
|
| ~VectorPlatformDeviceSkia(); |
| @@ -88,14 +87,8 @@ class VectorPlatformDeviceSkia : public PlatformDevice { |
| virtual void drawToHDC(HDC dc, int x, int y, const RECT* src_rect); |
| #endif |
| - // Our own methods. |
| - |
| - // This needs to be called before anything is drawn. |
| - void setInitialTransform(int xOffset, int yOffset, float scale_factor); |
| - |
| private: |
| SkRefPtr<SkPDFDevice> pdf_device_; |
| - SkMatrix base_transform_; |
| SkRefPtr<BitmapPlatformDevice> raster_surface_; |
| DISALLOW_COPY_AND_ASSIGN(VectorPlatformDeviceSkia); |