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

Unified Diff: ui/ozone/platform/dri/dri_surface.cc

Issue 361643002: setConfig is deprecated, use setInfo or allocPixels instead (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: don't call allocPixels+rowbytes yet (skia bug) Created 6 years, 6 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 | « ui/ozone/platform/dri/dri_buffer.cc ('k') | ui/views/controls/button/image_button_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/dri/dri_surface.cc
diff --git a/ui/ozone/platform/dri/dri_surface.cc b/ui/ozone/platform/dri/dri_surface.cc
index d6b4f5996b27a4b838c1ee240275f324bab2055b..e0813b6d0c74d64d9d1c601317ba6efeed3b8ad8 100644
--- a/ui/ozone/platform/dri/dri_surface.cc
+++ b/ui/ozone/platform/dri/dri_surface.cc
@@ -34,10 +34,8 @@ bool DriSurface::Initialize() {
bitmaps_[i].reset(CreateBuffer());
// TODO(dnicoara) Should select the configuration based on what the
// underlying system supports.
- SkImageInfo info = SkImageInfo::Make(size_.width(),
- size_.height(),
- kPMColor_SkColorType,
- kPremul_SkAlphaType);
+ SkImageInfo info = SkImageInfo::MakeN32Premul(size_.width(),
+ size_.height());
if (!bitmaps_[i]->Initialize(info)) {
return false;
}
« no previous file with comments | « ui/ozone/platform/dri/dri_buffer.cc ('k') | ui/views/controls/button/image_button_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698