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

Unified Diff: skia/ext/platform_canvas.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_canvas.h
===================================================================
--- skia/ext/platform_canvas.h (revision 85672)
+++ skia/ext/platform_canvas.h (working copy)
@@ -69,10 +69,10 @@
// Call endPlatformPaint when you are done and want to use Skia operations
// after calling the platform-specific beginPlatformPaint; this will
// synchronize the bitmap to OS if necessary.
- PlatformDevice::PlatformSurface beginPlatformPaint() const;
+ skia::platform_util::PlatformSurface beginPlatformPaint() const;
alokp 2011/05/18 03:25:42 do we need these member functions? Can't we direct
Jeff Timanus 2011/05/18 22:10:28 Yes, the functions below can be directly used.
void endPlatformPaint() const;
- // Returns the platform device pointer of the topmost rect with a non-empty
+ // Returns the SkDevice pointer of the topmost rect with a non-empty
// clip. In practice, this is usually either the top layer or nothing, since
// we usually set the clip to new layers when we make them.
//
@@ -85,7 +85,7 @@
//
// Danger: the resulting device should not be saved. It will be invalidated
// by the next call to save() or restore().
- PlatformDevice& getTopPlatformDevice() const;
+ SkDevice& getTopDevice() const;
alokp 2011/05/18 03:25:42 SkCanvas also has a function named getTopDevice().
Jeff Timanus 2011/05/18 22:10:28 I looked into the difference of behaviour between
// Return the stride (length of a line in bytes) for the given width. Because
// we use 32-bits per pixel, this will be roughly 4*width. However, for
@@ -133,7 +133,8 @@
//
// Note: These functions will eventually replace
// PlatformCanvas::beginPlatformPaint and PlatformCanvas::endPlatformPaint.
-SK_API PlatformDevice::PlatformSurface BeginPlatformPaint(SkCanvas* canvas);
+SK_API skia::platform_util::PlatformSurface BeginPlatformPaint(
+ SkCanvas* canvas);
SK_API void EndPlatformPaint(SkCanvas* canvas);
} // namespace skia

Powered by Google App Engine
This is Rietveld 408576698