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

Unified Diff: skia/ext/bitmap_platform_device_win.cc

Issue 2340813006: accessBitmap is no longer called/needed (Closed)
Patch Set: update unittest Created 4 years, 3 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: skia/ext/bitmap_platform_device_win.cc
diff --git a/skia/ext/bitmap_platform_device_win.cc b/skia/ext/bitmap_platform_device_win.cc
index f126c6b2a074a61a2e2bd5b50154b5714b426762..735a0d8479b09ae5924d9b2adbd5978efc9b90e5 100644
--- a/skia/ext/bitmap_platform_device_win.cc
+++ b/skia/ext/bitmap_platform_device_win.cc
@@ -197,14 +197,6 @@ HDC BitmapPlatformDevice::BeginPlatformPaint(const SkMatrix& transform,
return GetBitmapDC(transform, clip_bounds);
}
-const SkBitmap& BitmapPlatformDevice::onAccessBitmap() {
- // FIXME(brettw) OPTIMIZATION: We should only flush if we know a GDI
- // operation has occurred on our DC.
- if (IsBitmapDCCreated())
- GdiFlush();
- return SkBitmapDevice::onAccessBitmap();
-}
-
SkBaseDevice* BitmapPlatformDevice::onCreateDevice(const CreateInfo& cinfo,
const SkPaint*) {
const SkImageInfo& info = cinfo.fInfo;

Powered by Google App Engine
This is Rietveld 408576698