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

Issue 2411703004: Add usage counter to OffscreenCanvas API calls (Closed)

Created:
4 years, 2 months ago by xidachen
Modified:
4 years, 1 month ago
Reviewers:
jwd, Justin Novosad
CC:
chromium-reviews, blink-reviews, haraken, asvitkine+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add usage counter to OffscreenCanvas API calls Currently, there are two important API calls for OffscreenCanvas, which are transferToImageBitmap and commit. This CL adds usage counter to these two API calls. BUG=653599 TBR=kbr@chromium.org CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.win:win_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel Committed: https://crrev.com/fea82c134538247be328be35fb64d4c69e38c440 Cr-Commit-Position: refs/heads/master@{#427265}

Patch Set 1 #

Total comments: 2

Patch Set 2 : count usage in c code #

Patch Set 3 : rebase #

Patch Set 4 : fix compile error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -19 lines) Patch
M third_party/WebKit/Source/core/frame/UseCounter.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.idl View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp View 1 2 2 chunks +9 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.idl View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGL2RenderingContext.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGL2RenderingContext.cpp View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContext.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContext.cpp View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp View 1 2 1 chunk +9 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.idl View 1 1 chunk +1 line, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (15 generated)
xidachen
PTAL
4 years, 2 months ago (2016-10-12 13:53:02 UTC) #3
Justin Novosad
https://codereview.chromium.org/2411703004/diff/1/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.idl File third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.idl (right): https://codereview.chromium.org/2411703004/diff/1/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.idl#newcode14 third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.idl:14: [RaisesException, MeasureAs=OffscreenCanvasTransferToImageBitmap] ImageBitmap transferToImageBitmap(); You should put the counter ...
4 years, 2 months ago (2016-10-13 00:33:46 UTC) #4
jwd
histograms lgtm
4 years, 2 months ago (2016-10-14 15:13:40 UTC) #5
Ken Russell (switch to Gerrit)
I defer to junov's review.
4 years, 2 months ago (2016-10-20 03:48:21 UTC) #6
xidachen
PTAL.
4 years, 2 months ago (2016-10-20 16:48:39 UTC) #7
Justin Novosad
On 2016/10/20 16:48:39, xidachen wrote: > PTAL. lgtm
4 years, 1 month ago (2016-10-24 17:48:33 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2411703004/60001
4 years, 1 month ago (2016-10-25 02:04:33 UTC) #20
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-10-25 03:38:27 UTC) #22
commit-bot: I haz the power
4 years, 1 month ago (2016-10-25 03:42:11 UTC) #24
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/fea82c134538247be328be35fb64d4c69e38c440
Cr-Commit-Position: refs/heads/master@{#427265}

Powered by Google App Engine
This is Rietveld 408576698