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

Unified Diff: skia/ext/platform_device_win.h

Issue 7019013: Removal of dependencies on PlatformDevice classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Remove unnecessary headers. 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
Index: skia/ext/platform_device_win.h
===================================================================
--- skia/ext/platform_device_win.h (revision 85672)
+++ skia/ext/platform_device_win.h (working copy)
@@ -18,6 +18,21 @@
namespace skia {
+namespace platform_util {
+
+// Draws to the given screen DC. Forwards to the bound PlatformDevice, if
+// present. Othwerwise NOP.
+SK_API void DrawToHDC(SkDevice* device, HDC dc, int x, int y,
+ const RECT* src_rect);
+
+// Sets the opacity of each pixel in the specified region to be opaque.
+SK_API void MakeOpaque(SkDevice* device, int x, int y, int width, int height);
+
+// Initializes the default settings and colors in a device context.
+SK_API void InitializeDC(HDC context);
+
+} // namespace platform_util
+
// A device is basically a wrapper around SkBitmap that provides a surface for
// SkCanvas to draw into. Our device provides a surface Windows can also write
// to. It also provides functionality to play well with GDI drawing functions.
@@ -51,9 +66,6 @@
// Returns if GDI is allowed to render text to this device.
virtual bool IsNativeFontRenderingAllowed() { return true; }
- // Initializes the default settings and colors in a device context.
- static void InitializeDC(HDC context);
-
// Loads a SkPath into the GDI context. The path can there after be used for
// clipping or as a stroke.
static void LoadPathToDC(HDC context, const SkPath& path);

Powered by Google App Engine
This is Rietveld 408576698