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

Side by Side Diff: content/renderer/image_capture/image_capture_frame_grabber.cc

Issue 2739253003: Image Capture: Move files out of content/renderer/media to replicate WebKit's structure (Closed)
Patch Set: DEPS Created 3 years, 9 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/image_capture_frame_grabber.h" 5 #include "content/renderer/image_capture/image_capture_frame_grabber.h"
6 6
7 #include "cc/paint/paint_canvas.h" 7 #include "cc/paint/paint_canvas.h"
8 #include "cc/paint/paint_surface.h" 8 #include "cc/paint/paint_surface.h"
9 #include "media/base/bind_to_current_loop.h" 9 #include "media/base/bind_to_current_loop.h"
10 #include "media/base/video_frame.h" 10 #include "media/base/video_frame.h"
11 #include "media/base/video_util.h" 11 #include "media/base/video_util.h"
12 #include "skia/ext/platform_canvas.h" 12 #include "skia/ext/platform_canvas.h"
13 #include "third_party/WebKit/public/platform/WebCallbacks.h" 13 #include "third_party/WebKit/public/platform/WebCallbacks.h"
14 #include "third_party/WebKit/public/platform/WebMediaStreamSource.h" 14 #include "third_party/WebKit/public/platform/WebMediaStreamSource.h"
15 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h" 15 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h"
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 155
156 MediaStreamVideoSink::DisconnectFromTrack(); 156 MediaStreamVideoSink::DisconnectFromTrack();
157 frame_grab_in_progress_ = false; 157 frame_grab_in_progress_ = false;
158 if (image) 158 if (image)
159 callbacks.PassCallbacks()->onSuccess(image); 159 callbacks.PassCallbacks()->onSuccess(image);
160 else 160 else
161 callbacks.PassCallbacks()->onError(); 161 callbacks.PassCallbacks()->onError();
162 } 162 }
163 163
164 } // namespace content 164 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698