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

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

Issue 657293004: Remove unused GC::writePixels() wrapper. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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
Index: Source/platform/graphics/GraphicsContext.cpp
diff --git a/Source/platform/graphics/GraphicsContext.cpp b/Source/platform/graphics/GraphicsContext.cpp
index 6a237098cdcb61b57229a281df6ce90c46aad1ad..39b69ce9c28b383867af2f07942c82f80504d38e 100644
--- a/Source/platform/graphics/GraphicsContext.cpp
+++ b/Source/platform/graphics/GraphicsContext.cpp
@@ -1174,18 +1174,6 @@ void GraphicsContext::writePixels(const SkImageInfo& info, const void* pixels, s
}
}
-void GraphicsContext::writePixels(const SkBitmap& bitmap, int x, int y)
-{
- if (contextDisabled())
- return;
-
- if (!bitmap.getTexture()) {
- SkAutoLockPixels alp(bitmap);
- if (bitmap.getPixels())
- writePixels(bitmap.info(), bitmap.getPixels(), bitmap.rowBytes(), x, y);
- }
-}
-
void GraphicsContext::drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, const SkPaint* paint)
{
ASSERT(m_canvas);

Powered by Google App Engine
This is Rietveld 408576698