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

Issue 1505753005: Add OnRequestCanvasDrawListener (Closed)

Created:
5 years ago by emircan
Modified:
4 years, 11 months ago
Reviewers:
esprehn, hta - Chromium
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@timed-draw-listener
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add OnRequestCanvasDrawListener This CL handles captureStream(0) case where we are expected to capture frames from a canvas only when requestFrame() is called. It adds a new CanvasDrawListener. BUG=524218 TEST=Ran the demo below with MediaCaptureFromElement flag enabled. https://rawgit.com/uysalere/js-demos/master/canvascapture6.html Committed: https://crrev.com/cd1d0628f2760608c792391d31b5cd2c1b98a2a8 Cr-Commit-Position: refs/heads/master@{#367124}

Patch Set 1 #

Patch Set 2 : Added Layout test. #

Total comments: 7

Patch Set 3 : esprehn comments and rebase. #

Patch Set 4 : Added dtor. #

Patch Set 5 : Rebase. #

Messages

Total messages: 18 (11 generated)
emircan
PTAL.
5 years ago (2015-12-08 06:30:23 UTC) #3
esprehn
lgtm https://codereview.chromium.org/1505753005/diff/40001/third_party/WebKit/Source/modules/mediacapturefromelement/OnRequestCanvasDrawListener.cpp File third_party/WebKit/Source/modules/mediacapturefromelement/OnRequestCanvasDrawListener.cpp (right): https://codereview.chromium.org/1505753005/diff/40001/third_party/WebKit/Source/modules/mediacapturefromelement/OnRequestCanvasDrawListener.cpp#newcode25 third_party/WebKit/Source/modules/mediacapturefromelement/OnRequestCanvasDrawListener.cpp:25: return CanvasDrawListener::needsNewFrame(); return m_requestFrame && CanvasDrawListener::needsNewFrame(); remove if ...
5 years ago (2015-12-11 10:32:04 UTC) #8
emircan
Thanks. https://codereview.chromium.org/1505753005/diff/40001/third_party/WebKit/Source/modules/mediacapturefromelement/OnRequestCanvasDrawListener.cpp File third_party/WebKit/Source/modules/mediacapturefromelement/OnRequestCanvasDrawListener.cpp (right): https://codereview.chromium.org/1505753005/diff/40001/third_party/WebKit/Source/modules/mediacapturefromelement/OnRequestCanvasDrawListener.cpp#newcode25 third_party/WebKit/Source/modules/mediacapturefromelement/OnRequestCanvasDrawListener.cpp:25: return CanvasDrawListener::needsNewFrame(); On 2015/12/11 10:32:04, esprehn wrote: > ...
5 years ago (2015-12-11 19:51:09 UTC) #10
emircan
https://codereview.chromium.org/1505753005/diff/40001/third_party/WebKit/Source/modules/mediacapturefromelement/OnRequestCanvasDrawListener.h File third_party/WebKit/Source/modules/mediacapturefromelement/OnRequestCanvasDrawListener.h (right): https://codereview.chromium.org/1505753005/diff/40001/third_party/WebKit/Source/modules/mediacapturefromelement/OnRequestCanvasDrawListener.h#newcode18 third_party/WebKit/Source/modules/mediacapturefromelement/OnRequestCanvasDrawListener.h:18: ~OnRequestCanvasDrawListener() {} On 2015/12/11 19:51:09, emircan wrote: > On ...
5 years ago (2015-12-11 20:01:56 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1505753005/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1505753005/120001
4 years, 11 months ago (2015-12-30 01:39:34 UTC) #14
commit-bot: I haz the power
Committed patchset #5 (id:120001)
4 years, 11 months ago (2015-12-30 01:45:26 UTC) #16
commit-bot: I haz the power
4 years, 11 months ago (2015-12-30 01:46:14 UTC) #18
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/cd1d0628f2760608c792391d31b5cd2c1b98a2a8
Cr-Commit-Position: refs/heads/master@{#367124}

Powered by Google App Engine
This is Rietveld 408576698