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

Unified Diff: content/browser/media/capture/web_contents_video_capture_device.cc

Issue 374633002: SkBitmap::Config is deprecated, use SkColorType instead (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments from #4 Created 6 years, 5 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
Index: content/browser/media/capture/web_contents_video_capture_device.cc
diff --git a/content/browser/media/capture/web_contents_video_capture_device.cc b/content/browser/media/capture/web_contents_video_capture_device.cc
index 8a8474c2782f9b0e6e11fd8314a896141e73797a..98248494f83843e80b4b31e8b238066e4e13a1f2 100644
--- a/content/browser/media/capture/web_contents_video_capture_device.cc
+++ b/content/browser/media/capture/web_contents_video_capture_device.cc
@@ -469,7 +469,7 @@ void RenderVideoFrame(const SkBitmap& input,
// Sanity-check the captured bitmap.
if (input.empty() ||
!input.readyToDraw() ||
- input.config() != SkBitmap::kARGB_8888_Config ||
+ input.colorType() != kN32_SkColorType ||
input.width() < 2 || input.height() < 2) {
DVLOG(1) << "input unacceptable (size="
<< input.getSize()
@@ -667,7 +667,7 @@ void WebContentsCaptureMachine::Capture(
start_time,
target,
deliver_frame_cb),
- SkBitmap::kARGB_8888_Config);
+ kN32_SkColorType);
}
}

Powered by Google App Engine
This is Rietveld 408576698