summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics/android/context/GraphicsOperation.h
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2012-06-25 15:26:33 -0700
committerJohn Reck <jreck@google.com>2012-06-25 15:26:47 -0700
commit92ce173b5580cd3aaee405de2b9b9e930de62f82 (patch)
treee62e4bf5670cc77aa004636f105887b2cbb3445e /Source/WebCore/platform/graphics/android/context/GraphicsOperation.h
parent39a6582b61fce2deb8761ddf0096d206d6939bee (diff)
downloadexternal_webkit-92ce173b5580cd3aaee405de2b9b9e930de62f82.zip
external_webkit-92ce173b5580cd3aaee405de2b9b9e930de62f82.tar.gz
external_webkit-92ce173b5580cd3aaee405de2b9b9e930de62f82.tar.bz2
Remove unneeded/unused operations
Change-Id: Ifc514b1cfc12298c65a6c553c749a7b35520de7b
Diffstat (limited to 'Source/WebCore/platform/graphics/android/context/GraphicsOperation.h')
-rw-r--r--Source/WebCore/platform/graphics/android/context/GraphicsOperation.h51
1 files changed, 0 insertions, 51 deletions
diff --git a/Source/WebCore/platform/graphics/android/context/GraphicsOperation.h b/Source/WebCore/platform/graphics/android/context/GraphicsOperation.h
index 927ff0a..4a27fe9 100644
--- a/Source/WebCore/platform/graphics/android/context/GraphicsOperation.h
+++ b/Source/WebCore/platform/graphics/android/context/GraphicsOperation.h
@@ -71,10 +71,6 @@ public:
, SetStrokeShaderOperation
, SetStrokeStyleOperation
, SetStrokeThicknessOperation
- // Paint setup
- , SetupPaintFillOperation
- , SetupPaintShadowOperation
- , SetupPaintStrokeOperation
// Matrix operations
, ConcatCTMOperation
, ScaleOperation
@@ -133,10 +129,6 @@ public:
TYPE_CASE(SetStrokeShaderOperation)
TYPE_CASE(SetStrokeStyleOperation)
TYPE_CASE(SetStrokeThicknessOperation)
- // Paint setup
- TYPE_CASE(SetupPaintFillOperation)
- TYPE_CASE(SetupPaintShadowOperation)
- TYPE_CASE(SetupPaintStrokeOperation)
// Matrix operations
TYPE_CASE(ConcatCTMOperation)
TYPE_CASE(ScaleOperation)
@@ -375,48 +367,6 @@ private:
};
//**************************************
-// Paint setup
-//**************************************
-
-class SetupPaintFill : public Operation {
-public:
- SetupPaintFill(SkPaint* paint) : m_paint(*paint) {}
- virtual void apply(PlatformGraphicsContext* context) {
- context->setupPaintFill(&m_paint);
- }
- virtual OperationType type() { return SetupPaintFillOperation; }
-private:
- SkPaint m_paint;
-};
-
-class SetupPaintShadow : public Operation {
-public:
- SetupPaintShadow(SkPaint* paint, SkPoint* offset)
- : m_paint(*paint), m_offset(*offset) {}
- virtual void apply(PlatformGraphicsContext* context) {
- context->setupPaintShadow(&m_paint, &m_offset);
- }
- virtual OperationType type() { return SetupPaintShadowOperation; }
-private:
- SkPaint m_paint;
- SkPoint m_offset;
-};
-
-class SetupPaintStroke : public Operation {
-public:
- SetupPaintStroke(SkPaint* paint, SkRect* rect, bool isHLine)
- : m_paint(*paint), m_rect(*rect), m_isHLine(isHLine) {}
- virtual void apply(PlatformGraphicsContext* context) {
- context->setupPaintStroke(&m_paint, &m_rect, m_isHLine);
- }
- virtual OperationType type() { return SetupPaintStrokeOperation; }
-private:
- SkPaint m_paint;
- SkRect m_rect;
- bool m_isHLine;
-};
-
-//**************************************
// Matrix operations
//**************************************
@@ -773,7 +723,6 @@ public:
: m_font(font), m_simpleFont(simpleFont)
, m_glyphBuffer(glyphBuffer), m_from(from)
, m_numGlyphs(numGlyphs), m_point(point) {
-
SkPicture* picture = new SkPicture();
SkCanvas* canvas = picture->beginRecording(0, 0, 0);
PlatformGraphicsContextSkia platformContext(canvas);