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

Issue 297293004: Adding cache for security origin validations in 2D/WebGL canvases (Closed)

Created:
6 years, 7 months ago by Justin Novosad
Modified:
6 years, 6 months ago
CC:
blink-reviews, philipj_slow, blink-reviews-html_chromium.org, eric.carlson_apple.com, feature-media-reviews_chromium.org, dglazkov+blink, Rik, aandrey+blink_chromium.org, abarth-chromium
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Adding cache for security origin validations in 2D/WebGL canvases There used to be a similar cache before r168864. The old cache system did not survive the refactoring, which caused a measurable performance degradation on several mobile platforms. This change reinstates it in a refactored form. BUG=354565 TEST=jsgamebench telemetry on android Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=174995

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 5

Patch Set 3 : reorganized code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -5 lines) Patch
M Source/core/html/HTMLImageElement.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/HTMLImageElement.cpp View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M Source/core/html/HTMLVideoElement.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/canvas/CanvasImageSource.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/canvas/CanvasRenderingContext.h View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M Source/core/html/canvas/CanvasRenderingContext.cpp View 1 2 2 chunks +24 lines, -0 lines 0 comments Download
M Source/core/html/canvas/CanvasRenderingContext2D.cpp View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M Source/core/html/canvas/WebGLRenderingContextBase.cpp View 1 2 3 chunks +5 lines, -3 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Justin Novosad
PTAL
6 years, 7 months ago (2014-05-26 21:44:36 UTC) #1
Stephen White
Looks good with the naming nit fixed. The others are at your discretion. https://codereview.chromium.org/297293004/diff/20001/Source/core/html/HTMLImageElement.h File ...
6 years, 7 months ago (2014-05-27 19:02:11 UTC) #2
Justin Novosad
https://codereview.chromium.org/297293004/diff/20001/Source/core/html/HTMLImageElement.h File Source/core/html/HTMLImageElement.h (right): https://codereview.chromium.org/297293004/diff/20001/Source/core/html/HTMLImageElement.h#newcode96 Source/core/html/HTMLImageElement.h:96: virtual KURL sourceURL() const OVERRIDE; On 2014/05/27 19:02:12, Stephen ...
6 years, 7 months ago (2014-05-27 19:48:39 UTC) #3
Stephen White
On 2014/05/27 19:48:39, junov wrote: > https://codereview.chromium.org/297293004/diff/20001/Source/core/html/HTMLImageElement.h > File Source/core/html/HTMLImageElement.h (right): > > https://codereview.chromium.org/297293004/diff/20001/Source/core/html/HTMLImageElement.h#newcode96 > ...
6 years, 7 months ago (2014-05-27 20:06:15 UTC) #4
eseidel
6 years, 7 months ago (2014-05-27 20:09:17 UTC) #5
Ken Russell (switch to Gerrit)
LGTM. I don't have a strong preference about the naming convention, but getting this caching ...
6 years, 7 months ago (2014-05-27 23:18:58 UTC) #6
Justin Novosad
New patch. Re-organized the code to centralize the logic in CanvasRenderingContext. Much cleaner this way. ...
6 years, 6 months ago (2014-05-28 18:56:48 UTC) #7
Stephen White
LGTM. Nice! Thanks for the cleanup. Do we have tests that exercise all the new ...
6 years, 6 months ago (2014-05-28 19:07:44 UTC) #8
Justin Novosad
The CQ bit was checked by junov@chromium.org
6 years, 6 months ago (2014-05-28 19:19:20 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/junov@chromium.org/297293004/40001
6 years, 6 months ago (2014-05-28 19:19:44 UTC) #10
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_gpu on tryserver.chromium.gpu ...
6 years, 6 months ago (2014-05-28 20:33:40 UTC) #11
commit-bot: I haz the power
6 years, 6 months ago (2014-05-28 21:03:19 UTC) #12
Message was sent while issue was closed.
Change committed as 174995

Powered by Google App Engine
This is Rietveld 408576698