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

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: android should compile Created 4 years, 3 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 | « content/renderer/media/webmediaplayer_ms.h ('k') | media/blink/webmediaplayer_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/webmediaplayer_ms.cc
diff --git a/content/renderer/media/webmediaplayer_ms.cc b/content/renderer/media/webmediaplayer_ms.cc
index 4b17872d90cc1a50357fa19ee251d87260168ed2..e60ae7681397c8591fd5c658d492284fa38547cb 100644
--- a/content/renderer/media/webmediaplayer_ms.cc
+++ b/content/renderer/media/webmediaplayer_ms.cc
@@ -333,8 +333,7 @@ bool WebMediaPlayerMS::didLoadingProgress() {
void WebMediaPlayerMS::paint(blink::WebCanvas* canvas,
const blink::WebRect& rect,
- unsigned char alpha,
- SkXfermode::Mode mode) {
+ SkPaint& paint) {
DVLOG(3) << __func__;
DCHECK(thread_checker_.CalledOnValidThread());
@@ -352,7 +351,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);
}
« no previous file with comments | « content/renderer/media/webmediaplayer_ms.h ('k') | media/blink/webmediaplayer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698