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

Unified Diff: include/views/SkWindow.h

Issue 168843002: use SkColorType instead of SkBitmap::Config in views/effects (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 years, 10 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 | « no previous file | samplecode/SampleApp.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/views/SkWindow.h
diff --git a/include/views/SkWindow.h b/include/views/SkWindow.h
index f8dffa3a0c23a3e7e36c9d83010b9a4878834518..2a9315dc8c77c3b662e0a0af633c5883b38bdc43 100644
--- a/include/views/SkWindow.h
+++ b/include/views/SkWindow.h
@@ -32,8 +32,8 @@ public:
const SkBitmap& getBitmap() const { return fBitmap; }
- void setConfig(SkBitmap::Config);
- void resize(int width, int height, SkBitmap::Config config = SkBitmap::kNo_Config);
+ void setColorType(SkColorType);
+ void resize(int width, int height, SkColorType = kUnknown_SkColorType);
bool isDirty() const { return !fDirtyRgn.isEmpty(); }
bool update(SkIRect* updateArea);
@@ -81,7 +81,7 @@ protected:
virtual bool onSetFocusView(SkView* focus);
private:
- SkBitmap::Config fConfig;
+ SkColorType fColorType;
SkBitmap fBitmap;
SkRegion fDirtyRgn;
« no previous file with comments | « no previous file | samplecode/SampleApp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698