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

Issue 1508023002: Add TimedCanvasDrawListener (Closed)

Created:
5 years ago by emircan
Modified:
4 years, 11 months ago
Reviewers:
esprehn
CC:
ajuma+watch-canvas_chromium.org, blink-reviews, blink-reviews-html_chromium.org, Rik, chromium-reviews, dglazkov+blink, dshwang, Justin Novosad
Base URL:
https://chromium.googlesource.com/chromium/src.git@spec-change
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add TimedCanvasDrawListener This CL handles captureStream(frameRate) case where we are expected to capture frames from a canvas with respect to the given frame rate constraints. It adds a new CanvasDrawListener, and refactors the existing interface. BUG=524218 TEST= Ran the demo with MediaCaptureFromElement flag enabled. https://rawgit.com/uysalere/js-demos/master/canvascapture4.html Committed: https://crrev.com/1d8dcb8c58902f2493c4ff116e8696168a2986a2 Cr-Commit-Position: refs/heads/master@{#367118}

Patch Set 1 : #

Total comments: 26

Patch Set 2 : esprehn@ comments. #

Patch Set 3 : Rebase. #

Total comments: 20

Patch Set 4 : esprehn@ comments. #

Total comments: 4

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+164 lines, -22 lines) Patch
M third_party/WebKit/Source/core/core.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/canvas/CanvasDrawListener.h View 1 2 3 4 2 chunks +9 lines, -3 lines 0 comments Download
A third_party/WebKit/Source/core/html/canvas/CanvasDrawListener.cpp View 1 2 3 4 1 chunk +28 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/mediacapturefromelement/AutoCanvasDrawListener.h View 1 chunk +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/mediacapturefromelement/AutoCanvasDrawListener.cpp View 1 2 3 4 1 chunk +1 line, -11 lines 0 comments Download
M third_party/WebKit/Source/modules/mediacapturefromelement/CanvasCaptureMediaStreamTrack.h View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/mediacapturefromelement/CanvasCaptureMediaStreamTrack.cpp View 1 2 3 4 3 chunks +17 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/mediacapturefromelement/HTMLCanvasElementCapture.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/mediacapturefromelement/HTMLCanvasElementCapture.cpp View 1 2 3 4 3 chunks +19 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/mediacapturefromelement/HTMLCanvasElementCapture.idl View 1 chunk +1 line, -1 line 0 comments Download
A third_party/WebKit/Source/modules/mediacapturefromelement/TimedCanvasDrawListener.h View 1 2 3 1 chunk +33 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/mediacapturefromelement/TimedCanvasDrawListener.cpp View 1 2 3 4 1 chunk +47 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/modules.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (10 generated)
emircan
PTAL.
5 years ago (2015-12-08 06:27:28 UTC) #5
esprehn
https://codereview.chromium.org/1508023002/diff/40001/third_party/WebKit/Source/core/html/canvas/CanvasDrawListener.cpp File third_party/WebKit/Source/core/html/canvas/CanvasDrawListener.cpp (right): https://codereview.chromium.org/1508023002/diff/40001/third_party/WebKit/Source/core/html/canvas/CanvasDrawListener.cpp#newcode24 third_party/WebKit/Source/core/html/canvas/CanvasDrawListener.cpp:24: m_handler = handler; why not in the initializer list? ...
5 years ago (2015-12-11 10:38:24 UTC) #7
emircan
https://codereview.chromium.org/1508023002/diff/40001/third_party/WebKit/Source/core/html/canvas/CanvasDrawListener.cpp File third_party/WebKit/Source/core/html/canvas/CanvasDrawListener.cpp (right): https://codereview.chromium.org/1508023002/diff/40001/third_party/WebKit/Source/core/html/canvas/CanvasDrawListener.cpp#newcode24 third_party/WebKit/Source/core/html/canvas/CanvasDrawListener.cpp:24: m_handler = handler; On 2015/12/11 10:38:23, esprehn wrote: > ...
5 years ago (2015-12-11 19:25:16 UTC) #8
emircan
I rebased after clone() is added as well. PTAL.
5 years ago (2015-12-15 08:32:13 UTC) #10
esprehn
https://codereview.chromium.org/1508023002/diff/100001/third_party/WebKit/Source/core/html/canvas/CanvasDrawListener.h File third_party/WebKit/Source/core/html/canvas/CanvasDrawListener.h (right): https://codereview.chromium.org/1508023002/diff/100001/third_party/WebKit/Source/core/html/canvas/CanvasDrawListener.h#newcode16 third_party/WebKit/Source/core/html/canvas/CanvasDrawListener.h:16: class CORE_EXPORT CanvasDrawListener : public GarbageCollectedMixin { I wonder ...
5 years ago (2015-12-15 23:58:02 UTC) #11
emircan
https://codereview.chromium.org/1508023002/diff/100001/third_party/WebKit/Source/core/html/canvas/CanvasDrawListener.h File third_party/WebKit/Source/core/html/canvas/CanvasDrawListener.h (right): https://codereview.chromium.org/1508023002/diff/100001/third_party/WebKit/Source/core/html/canvas/CanvasDrawListener.h#newcode16 third_party/WebKit/Source/core/html/canvas/CanvasDrawListener.h:16: class CORE_EXPORT CanvasDrawListener : public GarbageCollectedMixin { On 2015/12/15 ...
5 years ago (2015-12-16 15:36:21 UTC) #12
esprehn
I'd really rather you split the code up so you didn't need need this givenFrameRate ...
5 years ago (2015-12-19 03:33:04 UTC) #13
esprehn
Also where are your layout tests? :) This definitely needs a bunch of tests!
5 years ago (2015-12-19 03:33:31 UTC) #14
emircan
On 2015/12/19 03:33:31, esprehn wrote: > Also where are your layout tests? :) This definitely ...
4 years, 11 months ago (2015-12-29 22:57:09 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1508023002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1508023002/140001
4 years, 11 months ago (2015-12-29 23:42:49 UTC) #18
commit-bot: I haz the power
Committed patchset #5 (id:140001)
4 years, 11 months ago (2015-12-29 23:47:51 UTC) #20
commit-bot: I haz the power
4 years, 11 months ago (2015-12-29 23:48:52 UTC) #22
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/1d8dcb8c58902f2493c4ff116e8696168a2986a2
Cr-Commit-Position: refs/heads/master@{#367118}

Powered by Google App Engine
This is Rietveld 408576698