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

Unified Diff: cc/resources/ui_resource_bitmap.h

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.h
diff --git a/cc/resources/ui_resource_bitmap.h b/cc/resources/ui_resource_bitmap.h
index 78cb465812570f499c79d9ab53edd11c50666e7b..9d1b428d5db917c85708a40bc1d0a36635903990 100644
--- a/cc/resources/ui_resource_bitmap.h
+++ b/cc/resources/ui_resource_bitmap.h
@@ -24,7 +24,8 @@ namespace cc {
class CC_EXPORT UIResourceBitmap {
public:
enum UIResourceFormat {
- RGBA8
+ RGBA8,
+ ETC1
};
enum UIResourceWrapMode {
CLAMP_TO_EDGE,
@@ -41,6 +42,11 @@ class CC_EXPORT UIResourceBitmap {
UIResourceBitmap(const SkBitmap& skbitmap,
UIResourceWrapMode wrap_mode = CLAMP_TO_EDGE);
+ UIResourceBitmap(const skia::RefPtr<SkPixelRef>& pixel_ref,
+ UIResourceFormat format,
+ UIResourceWrapMode wrap_mode,
aelias_OOO_until_Jul13 2013/10/18 01:59:24 Could you move wrap_mode out of the constructors a
powei 2013/10/23 05:36:15 Done.
+ gfx::Size size);
+
~UIResourceBitmap();
private:

Powered by Google App Engine
This is Rietveld 408576698