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

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: 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 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);
« 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