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

Unified Diff: cc/resources/ui_resource_bitmap.h

Issue 138393002: replace etc1_pixel_ref with skia version (SkMallocPixelRef) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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: cc/resources/ui_resource_bitmap.h
diff --git a/cc/resources/ui_resource_bitmap.h b/cc/resources/ui_resource_bitmap.h
index ea54f613b10d043f0afbdff8b592f88ff6bdb5fe..59ad8ae862aa34184a9fc5bcc51411ca73ddbf1e 100644
--- a/cc/resources/ui_resource_bitmap.h
+++ b/cc/resources/ui_resource_bitmap.h
@@ -44,17 +44,14 @@ class CC_EXPORT UIResourceBitmap {
// User must ensure that |skbitmap| is immutable. The SkBitmap Format should
// be 32-bit RGBA.
explicit UIResourceBitmap(const SkBitmap& skbitmap);
-
- UIResourceBitmap(const skia::RefPtr<ETC1PixelRef>& etc1_pixel_ref,
- gfx::Size size);
-
+ explicit UIResourceBitmap(const SkImageInfo& info);
~UIResourceBitmap();
private:
friend class AutoLockUIResourceBitmap;
+
void Create(const skia::RefPtr<SkPixelRef>& pixel_ref,
- UIResourceFormat format,
- gfx::Size size);
+ UIResourceFormat format);
skia::RefPtr<SkPixelRef> pixel_ref_;
UIResourceFormat format_;

Powered by Google App Engine
This is Rietveld 408576698