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

Side by Side Diff: third_party/WebKit/Source/modules/mediacapturefromelement/CanvasCaptureMediaStreamTrack.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/CanvasCaptureMediaStreamTrack.h" 5 #include "modules/mediacapturefromelement/CanvasCaptureMediaStreamTrack.h"
6 6
7 #include <memory>
7 #include "core/html/HTMLCanvasElement.h" 8 #include "core/html/HTMLCanvasElement.h"
8 #include "modules/mediacapturefromelement/AutoCanvasDrawListener.h" 9 #include "modules/mediacapturefromelement/AutoCanvasDrawListener.h"
9 #include "modules/mediacapturefromelement/OnRequestCanvasDrawListener.h" 10 #include "modules/mediacapturefromelement/OnRequestCanvasDrawListener.h"
10 #include "modules/mediacapturefromelement/TimedCanvasDrawListener.h" 11 #include "modules/mediacapturefromelement/TimedCanvasDrawListener.h"
11 #include "platform/mediastream/MediaStreamCenter.h" 12 #include "platform/mediastream/MediaStreamCenter.h"
12 #include <memory>
13 13
14 namespace blink { 14 namespace blink {
15 15
16 CanvasCaptureMediaStreamTrack* CanvasCaptureMediaStreamTrack::create( 16 CanvasCaptureMediaStreamTrack* CanvasCaptureMediaStreamTrack::create(
17 MediaStreamComponent* component, 17 MediaStreamComponent* component,
18 HTMLCanvasElement* element, 18 HTMLCanvasElement* element,
19 std::unique_ptr<WebCanvasCaptureHandler> handler) { 19 std::unique_ptr<WebCanvasCaptureHandler> handler) {
20 return new CanvasCaptureMediaStreamTrack(component, element, 20 return new CanvasCaptureMediaStreamTrack(component, element,
21 std::move(handler)); 21 std::move(handler));
22 } 22 }
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 if (frameRate == 0) { 82 if (frameRate == 0) {
83 m_drawListener = OnRequestCanvasDrawListener::create(std::move(handler)); 83 m_drawListener = OnRequestCanvasDrawListener::create(std::move(handler));
84 } else { 84 } else {
85 m_drawListener = 85 m_drawListener =
86 TimedCanvasDrawListener::create(std::move(handler), frameRate); 86 TimedCanvasDrawListener::create(std::move(handler), frameRate);
87 } 87 }
88 m_canvasElement->addListener(m_drawListener.get()); 88 m_canvasElement->addListener(m_drawListener.get());
89 } 89 }
90 90
91 } // namespace blink 91 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698