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

Unified Diff: content/renderer/media/webmediaplayer_ms.cc

Issue 2276033002: Pass SkPaint instead of its alpha and mode in WebMediaPlayer::paint (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update layout expectation Created 4 years, 4 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/renderer/media/webmediaplayer_ms.cc
diff --git a/content/renderer/media/webmediaplayer_ms.cc b/content/renderer/media/webmediaplayer_ms.cc
index 9a16a945d4c66aee7cecb37fc48de71b423daf71..de78195ba21d84fee03ea88b62e8a06281984c57 100644
--- a/content/renderer/media/webmediaplayer_ms.cc
+++ b/content/renderer/media/webmediaplayer_ms.cc
@@ -332,8 +332,7 @@ bool WebMediaPlayerMS::didLoadingProgress() {
void WebMediaPlayerMS::paint(blink::WebCanvas* canvas,
const blink::WebRect& rect,
- unsigned char alpha,
- SkXfermode::Mode mode) {
+ const SkPaint* paint) {
DVLOG(3) << __func__;
DCHECK(thread_checker_.CalledOnValidThread());
@@ -351,7 +350,7 @@ void WebMediaPlayerMS::paint(blink::WebCanvas* canvas,
DCHECK(context_3d.gl);
}
const gfx::RectF dest_rect(rect.x, rect.y, rect.width, rect.height);
- video_renderer_.Paint(frame, canvas, dest_rect, alpha, mode,
+ video_renderer_.Paint(frame, canvas, dest_rect, paint,
video_rotation_, context_3d);
}

Powered by Google App Engine
This is Rietveld 408576698