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

Unified Diff: skia/ext/platform_device_win.cc

Issue 6783023: Eliminate skia::PlatformCanvas - Step 1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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/platform_device_win.cc
===================================================================
--- skia/ext/platform_device_win.cc (revision 80358)
+++ skia/ext/platform_device_win.cc (working copy)
@@ -16,6 +16,15 @@
: SkDevice(NULL, bitmap, /*isForLayer=*/false) {
}
+HDC PlatformDevice::beginPlatformPaint() {
+ return getBitmapDC();
+}
+
+void PlatformDevice::endPlatformPaint() {
+ // we don't clear the DC here since it will be likely to be used again
vangelis 2011/04/05 06:23:10 This reads a little strange. If they are supposed
alokp 2011/04/05 15:37:56 Done.
+ // flushing will be done in onAccessBitmap
+}
+
// static
void PlatformDevice::InitializeDC(HDC context) {
// Enables world transformation.

Powered by Google App Engine
This is Rietveld 408576698