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

Unified Diff: cc/resources/ui_resource_bitmap.cc

Issue 27973002: cc: Adding ETC1 support to UIResourceBitmap and ResourceProvider (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
Index: cc/resources/ui_resource_bitmap.cc
diff --git a/cc/resources/ui_resource_bitmap.cc b/cc/resources/ui_resource_bitmap.cc
index 86acfa5185ce4e804be120863286fd13a400a6be..b8777c774ea25aac0552d88121f887aef9ee0382 100644
--- a/cc/resources/ui_resource_bitmap.cc
+++ b/cc/resources/ui_resource_bitmap.cc
@@ -37,6 +37,13 @@ UIResourceBitmap::UIResourceBitmap(const SkBitmap& skbitmap,
gfx::Size(skbitmap.width(), skbitmap.height()));
}
+UIResourceBitmap::UIResourceBitmap(const skia::RefPtr<SkPixelRef>& pixel_ref,
+ UIResourceFormat format,
+ UIResourceWrapMode wrap_mode,
+ gfx::Size size) {
+ Create(pixel_ref, format, wrap_mode, size);
+}
+
UIResourceBitmap::~UIResourceBitmap() {}
AutoLockUIResourceBitmap::AutoLockUIResourceBitmap(

Powered by Google App Engine
This is Rietveld 408576698