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

Unified Diff: ui/base/clipboard/clipboard.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/app_list/test/app_list_test_model.cc ('k') | ui/base/clipboard/clipboard_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/clipboard/clipboard.cc
diff --git a/ui/base/clipboard/clipboard.cc b/ui/base/clipboard/clipboard.cc
index c71d5b910f142047a28709caac23f4264cd09308..84371acea734acdf5af8947848cb6e320970d617 100644
--- a/ui/base/clipboard/clipboard.cc
+++ b/ui/base/clipboard/clipboard.cc
@@ -156,9 +156,8 @@ void Clipboard::DispatchObject(ObjectType type, const ObjectMapParams& params) {
reinterpret_cast<const gfx::Size*>(&params[1].front());
// Let Skia do some sanity checking for us (no negative widths/heights, no
// overflows while calculating bytes per row, etc).
- if (!bitmap.setConfig(SkBitmap::kARGB_8888_Config,
- unvalidated_size->width(),
- unvalidated_size->height())) {
+ if (!bitmap.setInfo(SkImageInfo::MakeN32Premul(
+ unvalidated_size->width(), unvalidated_size->height()))) {
return;
}
// Make sure the size is representable as a signed 32-bit int, so
« no previous file with comments | « ui/app_list/test/app_list_test_model.cc ('k') | ui/base/clipboard/clipboard_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698