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

Unified Diff: skia/ext/bitmap_platform_device_win.h

Issue 6949012: Assert on BeginPlatformPaint/EndPlatformPaint mismatch. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 7 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 | « no previous file | skia/ext/bitmap_platform_device_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/bitmap_platform_device_win.h
===================================================================
--- skia/ext/bitmap_platform_device_win.h (revision 84213)
+++ skia/ext/bitmap_platform_device_win.h (working copy)
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef SKIA_BITMAP_PLATFORM_DEVICE_WIN_H_
-#define SKIA_BITMAP_PLATFORM_DEVICE_WIN_H_
+#ifndef SKIA_EXT_BITMAP_PLATFORM_DEVICE_WIN_H_
+#define SKIA_EXT_BITMAP_PLATFORM_DEVICE_WIN_H_
#pragma once
#include "skia/ext/platform_device_win.h"
@@ -12,7 +12,7 @@
class BitmapPlatformDeviceFactory : public SkDeviceFactory {
public:
- virtual SkDevice* newDevice(SkCanvas* ignored, SkBitmap::Config config,
+ virtual SkDevice* newDevice(SkCanvas* ignored, SkBitmap::Config config,
int width, int height,
bool isOpaque, bool isForLayer);
};
@@ -72,6 +72,7 @@
// Retrieves the bitmap DC, which is the memory DC for our bitmap data. The
// bitmap DC is lazy created.
virtual PlatformSurface BeginPlatformPaint();
+ virtual void EndPlatformPaint();
// Loads the given transform and clipping region into the HDC. This is
// overridden from SkDevice.
@@ -108,9 +109,13 @@
// Data associated with this device, guaranteed non-null. We hold a reference
// to this object.
BitmapPlatformDeviceData* data_;
+
+#ifdef SK_DEBUG
+ int begin_paint_count_;
+#endif
};
} // namespace skia
-#endif // SKIA_BITMAP_PLATFORM_DEVICE_WIN_H_
+#endif // SKIA_EXT_BITMAP_PLATFORM_DEVICE_WIN_H_
« no previous file with comments | « no previous file | skia/ext/bitmap_platform_device_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698