summaryrefslogtreecommitdiff
path: root/Source/WebCore/platform/graphics/skia/PlatformContextSkia.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/platform/graphics/skia/PlatformContextSkia.h')
-rw-r--r--Source/WebCore/platform/graphics/skia/PlatformContextSkia.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/WebCore/platform/graphics/skia/PlatformContextSkia.h b/Source/WebCore/platform/graphics/skia/PlatformContextSkia.h
index fe3abb6f5..b306450cb 100644
--- a/Source/WebCore/platform/graphics/skia/PlatformContextSkia.h
+++ b/Source/WebCore/platform/graphics/skia/PlatformContextSkia.h
@@ -31,6 +31,7 @@
#ifndef PlatformContextSkia_h
#define PlatformContextSkia_h
+#include "AffineTransform.h"
#include "GraphicsContext.h"
#include "Noncopyable.h"
#include "OpaqueRegionSkia.h"
@@ -152,6 +153,7 @@ public:
// Returns the canvas used for painting, NOT guaranteed to be non-null.
SkCanvas* canvas() { return m_canvas; }
+ const SkCanvas* canvas() const { return m_canvas; }
InterpolationQuality interpolationQuality() const;
void setInterpolationQuality(InterpolationQuality interpolationQuality);
@@ -191,6 +193,8 @@ public:
void setDeferred(bool deferred) { m_deferred = deferred; }
void setTrackOpaqueRegion(bool track) { m_trackOpaqueRegion = track; }
+ // A transform applied to all tracked opaque paints. This is applied at the time the painting is done.
+ void setOpaqueRegionTransform(const AffineTransform& transform) { m_opaqueRegionTransform = transform; }
// This will be an empty region unless tracking is enabled.
const OpaqueRegionSkia& opaqueRegion() const { return m_opaqueRegion; }
@@ -228,6 +232,7 @@ private:
// Tracks the region painted opaque via the GraphicsContext.
OpaqueRegionSkia m_opaqueRegion;
bool m_trackOpaqueRegion;
+ AffineTransform m_opaqueRegionTransform;
// Stores image sizes for a hint to compute image resampling modes.
// Values are used in ImageSkia.cpp