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

Unified Diff: content/shell/renderer/webkit_test_runner.cc

Issue 191333002: stop using deprecated SkBitmap::Config -- use SkColorType instead (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/renderer/webkit_test_runner.cc
diff --git a/content/shell/renderer/webkit_test_runner.cc b/content/shell/renderer/webkit_test_runner.cc
index 583f152e9027e31ebd33000969140071db43070a..48a979b2795defd5510be732fcf97b073e114640 100644
--- a/content/shell/renderer/webkit_test_runner.cc
+++ b/content/shell/renderer/webkit_test_runner.cc
@@ -115,7 +115,7 @@ void MakeBitmapOpaque(SkBitmap* bitmap) {
void CopyCanvasToBitmap(SkCanvas* canvas, SkBitmap* snapshot) {
SkBaseDevice* device = skia::GetTopDevice(*canvas);
const SkBitmap& bitmap = device->accessBitmap(false);
- const bool success = bitmap.copyTo(snapshot, SkBitmap::kARGB_8888_Config);
+ const bool success = bitmap.copyTo(snapshot, kPMColor_SkColorType);
DCHECK(success);
#if !defined(OS_MACOSX)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698