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

Side by Side Diff: content/renderer/media/webmediaplayer_ms.cc

Issue 2523673004: [NOT FOR COMMIT] Fully replace SkCanvas uses.
Patch Set: Support Android build. Created 3 years, 12 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/media/webmediaplayer_ms.h" 5 #include "content/renderer/media/webmediaplayer_ms.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <limits> 8 #include <limits>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 return blink::WebTimeRanges(); 443 return blink::WebTimeRanges();
444 } 444 }
445 445
446 bool WebMediaPlayerMS::didLoadingProgress() { 446 bool WebMediaPlayerMS::didLoadingProgress() {
447 DCHECK(thread_checker_.CalledOnValidThread()); 447 DCHECK(thread_checker_.CalledOnValidThread());
448 return true; 448 return true;
449 } 449 }
450 450
451 void WebMediaPlayerMS::paint(blink::WebCanvas* canvas, 451 void WebMediaPlayerMS::paint(blink::WebCanvas* canvas,
452 const blink::WebRect& rect, 452 const blink::WebRect& rect,
453 SkPaint& paint) { 453 CdlPaint& paint) {
454 DVLOG(3) << __func__; 454 DVLOG(3) << __func__;
455 DCHECK(thread_checker_.CalledOnValidThread()); 455 DCHECK(thread_checker_.CalledOnValidThread());
456 456
457 const scoped_refptr<media::VideoFrame> frame = 457 const scoped_refptr<media::VideoFrame> frame =
458 compositor_->GetCurrentFrameWithoutUpdatingStatistics(); 458 compositor_->GetCurrentFrameWithoutUpdatingStatistics();
459 459
460 media::Context3D context_3d; 460 media::Context3D context_3d;
461 if (frame && frame->HasTextures()) { 461 if (frame && frame->HasTextures()) {
462 auto* provider = 462 auto* provider =
463 RenderThreadImpl::current()->SharedMainThreadContextProvider().get(); 463 RenderThreadImpl::current()->SharedMainThreadContextProvider().get();
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
675 void WebMediaPlayerMS::ResetCanvasCache() { 675 void WebMediaPlayerMS::ResetCanvasCache() {
676 DCHECK(thread_checker_.CalledOnValidThread()); 676 DCHECK(thread_checker_.CalledOnValidThread());
677 video_renderer_.ResetCache(); 677 video_renderer_.ResetCache();
678 } 678 }
679 679
680 void WebMediaPlayerMS::TriggerResize() { 680 void WebMediaPlayerMS::TriggerResize() {
681 get_client()->sizeChanged(); 681 get_client()->sizeChanged();
682 } 682 }
683 683
684 } // namespace content 684 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/webmediaplayer_ms.h ('k') | content/renderer/media/webmediaplayer_ms_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698