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

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

Issue 20165002: Move webkit/plugins/ppapi to content/renderer/pepper. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/video_destination_handler.h" 5 #include "content/renderer/media/video_destination_handler.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/base64.h" 9 #include "base/base64.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/rand_util.h" 11 #include "base/rand_util.h"
12 #include "content/renderer/media/media_stream_dependency_factory.h" 12 #include "content/renderer/media/media_stream_dependency_factory.h"
13 #include "content/renderer/media/media_stream_registry_interface.h" 13 #include "content/renderer/media/media_stream_registry_interface.h"
14 #include "content/renderer/pepper/ppb_image_data_impl.h"
14 #include "content/renderer/render_thread_impl.h" 15 #include "content/renderer/render_thread_impl.h"
15 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h" 16 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h"
16 #include "third_party/WebKit/public/web/WebMediaStreamRegistry.h" 17 #include "third_party/WebKit/public/web/WebMediaStreamRegistry.h"
17 #include "webkit/plugins/ppapi/ppb_image_data_impl.h"
18 18
19 using cricket::CaptureState; 19 using cricket::CaptureState;
20 using cricket::VideoFormat; 20 using cricket::VideoFormat;
21 using webkit::ppapi::PPB_ImageData_Impl; 21 using webkit::ppapi::PPB_ImageData_Impl;
22 using webrtc::VideoTrackInterface; 22 using webrtc::VideoTrackInterface;
23 using webrtc::VideoTrackVector; 23 using webrtc::VideoTrackVector;
24 24
25 static const cricket::FourCC kEffectColorFormat = cricket::FOURCC_BGRA; 25 static const cricket::FourCC kEffectColorFormat = cricket::FOURCC_BGRA;
26 26
27 namespace content { 27 namespace content {
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 VideoTrackVector video_tracks = native_stream->GetVideoTracks(); 202 VideoTrackVector video_tracks = native_stream->GetVideoTracks();
203 // Currently one supports one video track per media stream. 203 // Currently one supports one video track per media stream.
204 DCHECK(video_tracks.size() == 1); 204 DCHECK(video_tracks.size() == 1);
205 205
206 *frame_writer = new PpFrameWriterProxy(video_tracks[0].get(), writer); 206 *frame_writer = new PpFrameWriterProxy(video_tracks[0].get(), writer);
207 return true; 207 return true;
208 } 208 }
209 209
210 } // namespace content 210 } // namespace content
211 211
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698