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

Side by Side Diff: third_party/WebKit/Source/modules/mediacapturefromelement/HTMLCanvasElementCapture.cpp

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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 "modules/mediacapturefromelement/HTMLCanvasElementCapture.h" 5 #include "modules/mediacapturefromelement/HTMLCanvasElementCapture.h"
6 6
7 #include <memory>
7 #include "core/dom/ExceptionCode.h" 8 #include "core/dom/ExceptionCode.h"
8 #include "core/html/HTMLCanvasElement.h" 9 #include "core/html/HTMLCanvasElement.h"
9 #include "modules/mediacapturefromelement/CanvasCaptureMediaStreamTrack.h" 10 #include "modules/mediacapturefromelement/CanvasCaptureMediaStreamTrack.h"
10 #include "modules/mediastream/MediaStream.h" 11 #include "modules/mediastream/MediaStream.h"
11 #include "public/platform/Platform.h" 12 #include "public/platform/Platform.h"
12 #include "public/platform/WebCanvasCaptureHandler.h" 13 #include "public/platform/WebCanvasCaptureHandler.h"
13 #include "public/platform/WebMediaStream.h" 14 #include "public/platform/WebMediaStream.h"
14 #include "public/platform/WebMediaStreamTrack.h" 15 #include "public/platform/WebMediaStreamTrack.h"
15 #include "wtf/PtrUtil.h" 16 #include "wtf/PtrUtil.h"
16 #include <memory>
17 17
18 namespace { 18 namespace {
19 const double kDefaultFrameRate = 60.0; 19 const double kDefaultFrameRate = 60.0;
20 } // anonymous namespace 20 } // anonymous namespace
21 21
22 namespace blink { 22 namespace blink {
23 23
24 MediaStream* HTMLCanvasElementCapture::captureStream( 24 MediaStream* HTMLCanvasElementCapture::captureStream(
25 HTMLCanvasElement& element, 25 HTMLCanvasElement& element,
26 ExceptionState& exceptionState) { 26 ExceptionState& exceptionState) {
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 std::move(handler)); 77 std::move(handler));
78 // We want to capture a frame in the beginning. 78 // We want to capture a frame in the beginning.
79 canvasTrack->requestFrame(); 79 canvasTrack->requestFrame();
80 80
81 MediaStreamTrackVector tracks; 81 MediaStreamTrackVector tracks;
82 tracks.push_back(canvasTrack); 82 tracks.push_back(canvasTrack);
83 return MediaStream::create(element.getExecutionContext(), tracks); 83 return MediaStream::create(element.getExecutionContext(), tracks);
84 } 84 }
85 85
86 } // namespace blink 86 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698