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

Issue 907453003: Move overdraw tracking code from GraphicsContext to CanvasRenderingContext2D (Closed)

Created:
5 years, 10 months ago by Justin Novosad
Modified:
5 years, 10 months ago
CC:
blink-reviews, krit, dshwang, Dominik Röttsches, blink-reviews-html_chromium.org, pdr+graphicswatchlist_chromium.org, jbroman, danakj, dglazkov+blink, Rik, f(malita), aandrey+blink_chromium.org, rwlbuis, Stephen White
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Move overdraw tracking code from GraphicsContext to CanvasRenderingContext2D This change is another step towards making CanvasRenderingContext2D independent of GraphicsContext. BUG=453113 TEST=fast/canvas/* and canvas/philip/* Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=190059

Patch Set 1 #

Total comments: 14

Patch Set 2 : converted tests #

Patch Set 3 : adding missing test file #

Total comments: 29

Patch Set 4 : applied review feedback + fixed layout test crash #

Patch Set 5 : fix unit test crash #

Patch Set 6 : fix bug in text compositing #

Total comments: 3

Patch Set 7 : fix test copypasta #

Unified diffs Side-by-side diffs Delta from patch set Stats (+522 lines, -566 lines) Patch
M Source/core/core.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/HTMLCanvasElement.h View 1 2 3 3 chunks +5 lines, -1 line 0 comments Download
M Source/core/html/HTMLCanvasElement.cpp View 1 2 3 5 chunks +21 lines, -5 lines 0 comments Download
M Source/core/html/HTMLImageElement.h View 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/html/HTMLImageElement.cpp View 1 1 chunk +7 lines, -0 lines 0 comments Download
M Source/core/html/canvas/CanvasImageSource.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/canvas/CanvasRenderingContext2D.h View 1 2 3 4 5 5 chunks +17 lines, -2 lines 0 comments Download
M Source/core/html/canvas/CanvasRenderingContext2D.cpp View 1 2 3 4 5 18 chunks +134 lines, -32 lines 0 comments Download
A Source/core/html/canvas/CanvasRenderingContext2DTest.cpp View 1 2 3 4 5 6 1 chunk +308 lines, -0 lines 0 comments Download
M Source/platform/blink_platform.gypi View 1 chunk +0 lines, -2 lines 0 comments Download
M Source/platform/graphics/GraphicsContext.h View 4 chunks +0 lines, -9 lines 0 comments Download
M Source/platform/graphics/GraphicsContext.cpp View 12 chunks +0 lines, -49 lines 0 comments Download
D Source/platform/graphics/GraphicsContextClient.h View 1 chunk +0 lines, -68 lines 0 comments Download
D Source/platform/graphics/GraphicsContextClient.cpp View 1 chunk +0 lines, -122 lines 0 comments Download
M Source/platform/graphics/GraphicsContextState.h View 2 chunks +0 lines, -6 lines 0 comments Download
M Source/platform/graphics/GraphicsContextState.cpp View 3 chunks +1 line, -14 lines 0 comments Download
M Source/platform/graphics/GraphicsContextTest.cpp View 1 2 chunks +0 lines, -227 lines 0 comments Download
M Source/platform/graphics/ImageBuffer.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/platform/graphics/ImageBufferSurface.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/platform/graphics/RecordingImageBufferSurface.h View 1 2 chunks +23 lines, -25 lines 0 comments Download
M Source/platform/graphics/RecordingImageBufferSurface.cpp View 2 chunks +0 lines, -3 lines 0 comments Download

Messages

Total messages: 28 (6 generated)
Justin Novosad
5 years, 10 months ago (2015-02-06 18:27:54 UTC) #2
Justin Novosad
On 2015/02/06 18:27:54, junov wrote: Not final: still working on moving the unit tests that ...
5 years, 10 months ago (2015-02-06 18:29:10 UTC) #3
dshwang
I have some questions. https://codereview.chromium.org/907453003/diff/1/Source/core/html/canvas/CanvasRenderingContext2D.cpp File Source/core/html/canvas/CanvasRenderingContext2D.cpp (right): https://codereview.chromium.org/907453003/diff/1/Source/core/html/canvas/CanvasRenderingContext2D.cpp#newcode1525 Source/core/html/canvas/CanvasRenderingContext2D.cpp:1525: checkOverdraw(dstRect, &c->fillPaint(), imageSource->isOpaque() ? OpaqueImage ...
5 years, 10 months ago (2015-02-06 19:10:37 UTC) #4
Justin Novosad
https://codereview.chromium.org/907453003/diff/1/Source/core/html/canvas/CanvasRenderingContext2D.cpp File Source/core/html/canvas/CanvasRenderingContext2D.cpp (right): https://codereview.chromium.org/907453003/diff/1/Source/core/html/canvas/CanvasRenderingContext2D.cpp#newcode1525 Source/core/html/canvas/CanvasRenderingContext2D.cpp:1525: checkOverdraw(dstRect, &c->fillPaint(), imageSource->isOpaque() ? OpaqueImage : NonOpaqueImage, NormalFill); On ...
5 years, 10 months ago (2015-02-06 19:37:31 UTC) #5
Justin Novosad
New Patch. - Addressed review comments. - Replaced old GC tests with CRC2D tests - ...
5 years, 10 months ago (2015-02-10 23:07:46 UTC) #6
Justin Novosad
New patch. Added missing test file
5 years, 10 months ago (2015-02-10 23:13:01 UTC) #7
Justin Novosad
+kbr
5 years, 10 months ago (2015-02-10 23:20:35 UTC) #9
dshwang
lgtm with nits https://codereview.chromium.org/907453003/diff/40001/Source/core/html/HTMLCanvasElement.cpp File Source/core/html/HTMLCanvasElement.cpp (right): https://codereview.chromium.org/907453003/diff/40001/Source/core/html/HTMLCanvasElement.cpp#newcode618 Source/core/html/HTMLCanvasElement.cpp:618: int msaaSampleCount; need to initialize. it ...
5 years, 10 months ago (2015-02-11 08:37:52 UTC) #10
Ken Russell (switch to Gerrit)
LGTM with the comments below and Dongseong's addressed. Also a couple of questions. https://codereview.chromium.org/907453003/diff/40001/Source/core/html/canvas/CanvasRenderingContext2D.cpp File ...
5 years, 10 months ago (2015-02-11 10:11:44 UTC) #11
Stephen Chennney
My 2c worth. https://codereview.chromium.org/907453003/diff/40001/Source/core/html/HTMLCanvasElement.cpp File Source/core/html/HTMLCanvasElement.cpp (right): https://codereview.chromium.org/907453003/diff/40001/Source/core/html/HTMLCanvasElement.cpp#newcode621 Source/core/html/HTMLCanvasElement.cpp:621: surface = externalSurface; Should the msaaSampleCount ...
5 years, 10 months ago (2015-02-11 14:33:20 UTC) #12
Justin Novosad
https://codereview.chromium.org/907453003/diff/40001/Source/core/html/HTMLCanvasElement.cpp File Source/core/html/HTMLCanvasElement.cpp (right): https://codereview.chromium.org/907453003/diff/40001/Source/core/html/HTMLCanvasElement.cpp#newcode618 Source/core/html/HTMLCanvasElement.cpp:618: int msaaSampleCount; On 2015/02/11 08:37:52, dshwang wrote: > need ...
5 years, 10 months ago (2015-02-11 18:59:55 UTC) #14
Justin Novosad
Significant changes to CanvasRenderingContext2DTest.cpp since previous l-g-t-m
5 years, 10 months ago (2015-02-11 19:01:24 UTC) #15
Stephen Chennney
LGTM, but maybe let others weigh in too. https://codereview.chromium.org/907453003/diff/40001/Source/core/html/HTMLCanvasElement.cpp File Source/core/html/HTMLCanvasElement.cpp (right): https://codereview.chromium.org/907453003/diff/40001/Source/core/html/HTMLCanvasElement.cpp#newcode621 Source/core/html/HTMLCanvasElement.cpp:621: surface ...
5 years, 10 months ago (2015-02-11 19:29:48 UTC) #16
Justin Novosad
Looks like Mocks need to be exported for the component build. How weird is that?
5 years, 10 months ago (2015-02-11 20:19:32 UTC) #17
Justin Novosad
On 2015/02/11 20:19:32, junov wrote: > Looks like Mocks need to be exported for the ...
5 years, 10 months ago (2015-02-11 20:22:01 UTC) #18
Justin Novosad
Patch set six has significant changes to CanvasRenderingContext2D.cpp
5 years, 10 months ago (2015-02-11 21:16:13 UTC) #20
Stephen Chennney
Nasty to have a canvas change underneath you. LGTM. It's ugly but I presume it ...
5 years, 10 months ago (2015-02-11 21:24:51 UTC) #21
Justin Novosad
https://codereview.chromium.org/907453003/diff/100001/Source/core/html/canvas/CanvasRenderingContext2D.cpp File Source/core/html/canvas/CanvasRenderingContext2D.cpp (right): https://codereview.chromium.org/907453003/diff/100001/Source/core/html/canvas/CanvasRenderingContext2D.cpp#newcode576 Source/core/html/canvas/CanvasRenderingContext2D.cpp:576: return; On 2015/02/11 21:24:51, Stephen Chenney wrote: > Nit: ...
5 years, 10 months ago (2015-02-11 21:49:47 UTC) #22
Stephen Chennney
On 2015/02/11 21:49:47, junov wrote: > https://codereview.chromium.org/907453003/diff/100001/Source/core/html/canvas/CanvasRenderingContext2D.cpp > File Source/core/html/canvas/CanvasRenderingContext2D.cpp (right): > > https://codereview.chromium.org/907453003/diff/100001/Source/core/html/canvas/CanvasRenderingContext2D.cpp#newcode576 > ...
5 years, 10 months ago (2015-02-11 22:07:15 UTC) #23
Ken Russell (switch to Gerrit)
Still LGTM https://codereview.chromium.org/907453003/diff/100001/Source/core/html/canvas/CanvasRenderingContext2DTest.cpp File Source/core/html/canvas/CanvasRenderingContext2DTest.cpp (right): https://codereview.chromium.org/907453003/diff/100001/Source/core/html/canvas/CanvasRenderingContext2DTest.cpp#newcode230 Source/core/html/canvas/CanvasRenderingContext2DTest.cpp:230: TEST_OVERDRAW_2(1, translate(1, 1), fillRect(-1, -1, 10, 10)); ...
5 years, 10 months ago (2015-02-12 11:48:06 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/907453003/120001
5 years, 10 months ago (2015-02-12 15:49:20 UTC) #27
commit-bot: I haz the power
5 years, 10 months ago (2015-02-12 17:22:51 UTC) #28
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=190059

Powered by Google App Engine
This is Rietveld 408576698