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

Unified Diff: Source/platform/graphics/GraphicsContext.cpp

Issue 1209183003: Remove some dead code from GraphicsContext. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 | « Source/platform/graphics/GraphicsContext.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/GraphicsContext.cpp
diff --git a/Source/platform/graphics/GraphicsContext.cpp b/Source/platform/graphics/GraphicsContext.cpp
index b71030fa6955ed67c836b98ed5f443850954eafe..413b4e19988745ec4a7e01daf879ec726333c3ec 100644
--- a/Source/platform/graphics/GraphicsContext.cpp
+++ b/Source/platform/graphics/GraphicsContext.cpp
@@ -904,13 +904,6 @@ void GraphicsContext::drawHighlightForText(const Font& font, const TextRun& run,
fillRect(font.selectionRectForText(run, point, h, from, to), backgroundColor);
}
-void GraphicsContext::drawImage(Image* image, const IntPoint& p, SkXfermode::Mode op, RespectImageOrientationEnum shouldRespectImageOrientation)
-{
- if (!image)
- return;
- drawImage(image, FloatRect(IntRect(p, image->size())), FloatRect(FloatPoint(), FloatSize(image->size())), op, shouldRespectImageOrientation);
-}
-
void GraphicsContext::drawImage(Image* image, const IntRect& r, SkXfermode::Mode op, RespectImageOrientationEnum shouldRespectImageOrientation)
{
if (!image)
@@ -977,15 +970,6 @@ void GraphicsContext::drawTiledImage(Image* image, const IntRect& dest, const In
image->drawTiled(this, dest, srcRect, tileScaleFactor, hRule, vRule, op);
}
-void GraphicsContext::writePixels(const SkImageInfo& info, const void* pixels, size_t rowBytes, int x, int y)
-{
- if (contextDisabled())
- return;
- ASSERT(m_canvas);
-
- m_canvas->writePixels(info, pixels, rowBytes, x, y);
-}
-
void GraphicsContext::drawOval(const SkRect& oval, const SkPaint& paint)
{
if (contextDisabled())
@@ -1326,16 +1310,6 @@ void GraphicsContext::setURLFragmentForRect(const String& destName, const IntRec
SkAnnotateLinkToDestination(m_canvas, rect, skDestName.get());
}
-void GraphicsContext::addURLTargetAtPoint(const String& name, const IntPoint& pos)
-{
- if (contextDisabled())
- return;
- ASSERT(m_canvas);
-
- SkAutoDataUnref nameData(SkData::NewWithCString(name.utf8().data()));
- SkAnnotateNamedDestination(m_canvas, SkPoint::Make(pos.x(), pos.y()), nameData);
-}
-
AffineTransform GraphicsContext::getCTM() const
{
ASSERT(!RuntimeEnabledFeatures::slimmingPaintEnabled());
« no previous file with comments | « Source/platform/graphics/GraphicsContext.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698