Commit afb38609 authored by reed@google.com's avatar reed@google.com

stop using deprecated SkBitmap::Config -- use SkColorType instead

BUG=skia:2239
NOTRY=True

TBR=pfeldman@chromium.org

only failing trybot is mac_rel:telemetry_perfm, which has been failing for a while now. This CL is not related to that area, so skipping that try to land it.

Review URL: https://codereview.chromium.org/191333002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@255788 0039d316-1c4b-4281-b951-d872f2087c98
parent f42cffbe
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment