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

Unified Diff: media/filters/skcanvas_video_renderer.cc

Issue 310743003: use imageInfo instead of (deprecated) getDevice and config() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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: media/filters/skcanvas_video_renderer.cc
diff --git a/media/filters/skcanvas_video_renderer.cc b/media/filters/skcanvas_video_renderer.cc
index 0658762b3f407f7a01abf79af79646ab75d254e0..31e4fafd9358167e5cd2886788a9566db5f30243 100644
--- a/media/filters/skcanvas_video_renderer.cc
+++ b/media/filters/skcanvas_video_renderer.cc
@@ -70,10 +70,9 @@ static bool CanFastPaint(SkCanvas* canvas, uint8 alpha,
SkScalarNearlyZero(total_matrix.getSkewY()) &&
total_matrix.getScaleX() > 0 &&
total_matrix.getScaleY() > 0) {
- SkBaseDevice* device = canvas->getDevice();
- const SkBitmap::Config config = device->config();
+ const SkImageInfo info = canvas->imageInfo();
Ami GONE FROM CHROMIUM 2014/06/03 17:01:07 const& instead of const ?
reed1 2014/06/03 17:26:08 The canvas is returning by value, not by ref. Shou
Ami GONE FROM CHROMIUM 2014/06/03 21:24:47 Probably not.
- if (config == SkBitmap::kARGB_8888_Config && device->isOpaque()) {
+ if (info.colorType() == kN32_SkColorType && info.isOpaque()) {
Ami GONE FROM CHROMIUM 2014/06/03 17:01:07 Isn't this a behavior change on Android per l.14?
reed1 2014/06/03 17:26:08 Not sure the android reference. My change is funct
Ami GONE FROM CHROMIUM 2014/06/03 21:24:47 Huh; I was confused by https://code.google.com/p/
return true;
}
}
« 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