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

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

Issue 2640983002: Rename paint data structures (Closed)
Patch Set: Clean up comments, fix mac build Created 3 years, 11 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 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 return blink::WebTimeRanges(); 441 return blink::WebTimeRanges();
442 } 442 }
443 443
444 bool WebMediaPlayerMS::didLoadingProgress() { 444 bool WebMediaPlayerMS::didLoadingProgress() {
445 DCHECK(thread_checker_.CalledOnValidThread()); 445 DCHECK(thread_checker_.CalledOnValidThread());
446 return true; 446 return true;
447 } 447 }
448 448
449 void WebMediaPlayerMS::paint(blink::WebCanvas* canvas, 449 void WebMediaPlayerMS::paint(blink::WebCanvas* canvas,
450 const blink::WebRect& rect, 450 const blink::WebRect& rect,
451 SkPaint& paint) { 451 cc::PaintFlags& paint) {
452 DVLOG(3) << __func__; 452 DVLOG(3) << __func__;
453 DCHECK(thread_checker_.CalledOnValidThread()); 453 DCHECK(thread_checker_.CalledOnValidThread());
454 454
455 const scoped_refptr<media::VideoFrame> frame = 455 const scoped_refptr<media::VideoFrame> frame =
456 compositor_->GetCurrentFrameWithoutUpdatingStatistics(); 456 compositor_->GetCurrentFrameWithoutUpdatingStatistics();
457 457
458 media::Context3D context_3d; 458 media::Context3D context_3d;
459 if (frame && frame->HasTextures()) { 459 if (frame && frame->HasTextures()) {
460 auto* provider = 460 auto* provider =
461 RenderThreadImpl::current()->SharedMainThreadContextProvider().get(); 461 RenderThreadImpl::current()->SharedMainThreadContextProvider().get();
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 void WebMediaPlayerMS::ResetCanvasCache() { 703 void WebMediaPlayerMS::ResetCanvasCache() {
704 DCHECK(thread_checker_.CalledOnValidThread()); 704 DCHECK(thread_checker_.CalledOnValidThread());
705 video_renderer_.ResetCache(); 705 video_renderer_.ResetCache();
706 } 706 }
707 707
708 void WebMediaPlayerMS::TriggerResize() { 708 void WebMediaPlayerMS::TriggerResize() {
709 get_client()->sizeChanged(); 709 get_client()->sizeChanged();
710 } 710 }
711 711
712 } // namespace content 712 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698