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

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

Issue 2781823002: Revert of cc/paint: Remove cc::PaintSurface. (Closed)
Patch Set: Created 3 years, 8 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_compositor.h" 5 #include "content/renderer/media/webmediaplayer_ms_compositor.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 #include <string> 8 #include <string>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #include "base/hash.h" 11 #include "base/hash.h"
12 #include "base/single_thread_task_runner.h" 12 #include "base/single_thread_task_runner.h"
13 #include "base/values.h" 13 #include "base/values.h"
14 #include "cc/paint/skia_paint_canvas.h" 14 #include "cc/paint/paint_surface.h"
15 #include "content/renderer/media/webmediaplayer_ms.h" 15 #include "content/renderer/media/webmediaplayer_ms.h"
16 #include "content/renderer/render_thread_impl.h" 16 #include "content/renderer/render_thread_impl.h"
17 #include "media/base/media_switches.h" 17 #include "media/base/media_switches.h"
18 #include "media/base/video_frame.h" 18 #include "media/base/video_frame.h"
19 #include "media/base/video_util.h" 19 #include "media/base/video_util.h"
20 #include "media/filters/video_renderer_algorithm.h" 20 #include "media/filters/video_renderer_algorithm.h"
21 #include "media/renderers/skcanvas_video_renderer.h" 21 #include "media/renderers/skcanvas_video_renderer.h"
22 #include "services/ui/public/cpp/gpu/context_provider_command_buffer.h" 22 #include "services/ui/public/cpp/gpu/context_provider_command_buffer.h"
23 #include "skia/ext/platform_canvas.h" 23 #include "skia/ext/platform_canvas.h"
24 #include "third_party/WebKit/public/platform/WebMediaStream.h" 24 #include "third_party/WebKit/public/platform/WebMediaStream.h"
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 } 456 }
457 457
458 if (!rendering_frame_buffer_) { 458 if (!rendering_frame_buffer_) {
459 rendering_frame_buffer_.reset(new media::VideoRendererAlgorithm( 459 rendering_frame_buffer_.reset(new media::VideoRendererAlgorithm(
460 base::Bind(&WebMediaPlayerMSCompositor::MapTimestampsToRenderTimeTicks, 460 base::Bind(&WebMediaPlayerMSCompositor::MapTimestampsToRenderTimeTicks,
461 base::Unretained(this)))); 461 base::Unretained(this))));
462 } 462 }
463 } 463 }
464 464
465 } // namespace content 465 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698