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

Unified Diff: skia/ext/platform_canvas.h

Issue 1396613006: Remove skia::PlatformBitmap. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 | « skia/ext/bitmap_platform_device_win.cc ('k') | skia/ext/platform_canvas.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/platform_canvas.h
diff --git a/skia/ext/platform_canvas.h b/skia/ext/platform_canvas.h
index 75458b5dd5401c63e4341395cd9e0bdf47ae4591..79c10fd5e8378c3d617df02454f01ae76ec2adbe 100644
--- a/skia/ext/platform_canvas.h
+++ b/skia/ext/platform_canvas.h
@@ -154,34 +154,6 @@ class SK_API ScopedPlatformPaint {
ScopedPlatformPaint& operator=(const ScopedPlatformPaint&);
};
-// PlatformBitmap holds a PlatformSurface that can also be used as an SkBitmap.
-class SK_API PlatformBitmap {
- public:
- PlatformBitmap();
- ~PlatformBitmap();
-
- // Returns true if the bitmap was able to allocate its surface.
- bool Allocate(int width, int height, bool is_opaque);
-
- // Returns the platform surface, or 0 if Allocate() did not return true.
- PlatformSurface GetSurface() { return surface_; }
-
- // Return the skia bitmap, which will be empty if Allocate() did not
- // return true.
- //
- // The resulting SkBitmap holds a refcount on the underlying platform surface,
- // so the surface will remain allocated so long as the SkBitmap or its copies
- // stay around.
- const SkBitmap& GetBitmap() { return bitmap_; }
-
- private:
- SkBitmap bitmap_;
- PlatformSurface surface_; // initialized to 0
- intptr_t platform_extra_; // platform specific, initialized to 0
-
- DISALLOW_COPY_AND_ASSIGN(PlatformBitmap);
-};
-
} // namespace skia
#endif // SKIA_EXT_PLATFORM_CANVAS_H_
« no previous file with comments | « skia/ext/bitmap_platform_device_win.cc ('k') | skia/ext/platform_canvas.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698