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

Unified Diff: skia/ext/vector_platform_device_skia.h

Issue 6820038: Push the initial transform down into SkPDFDevice. (Chrome side). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase and roll Skia to r1111 Created 9 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « printing/pdf_metafile_skia.cc ('k') | skia/ext/vector_platform_device_skia.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 48a40fe984cf031ee4dede7e6edc17cfcc616f82..f518f5442fa1c2d45ce4e510b479575a50b70e06 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,9 +31,9 @@ class VectorPlatformDeviceSkiaFactory : public SkDeviceFactory {
class VectorPlatformDeviceSkia : public PlatformDevice {
public:
- SK_API VectorPlatformDeviceSkia(int width, int height,
- SkPDFDevice::OriginTransform flip);
-
+ SK_API VectorPlatformDeviceSkia(int width,
+ int height,
+ const SkMatrix& initialTransform);
~VectorPlatformDeviceSkia();
SkPDFDevice* PdfDevice() { return pdf_device_.get(); }
@@ -88,14 +88,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.
- SK_API 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);
« no previous file with comments | « printing/pdf_metafile_skia.cc ('k') | skia/ext/vector_platform_device_skia.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698