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

Issue 341213002: Redraw only dirty area for accelerated 2D Canvas. (Closed)

Created:
6 years, 6 months ago by hj.r.chung
Modified:
6 years, 6 months ago
CC:
blink-layers+watch_chromium.org, blink-reviews, blink-reviews-html_chromium.org, blink-reviews-rendering, Rik, danakj, dglazkov+blink, krit, eae+blinkwatch, jamesr, jbroman, jchaffraix+rendering, leviw+renderwatch, pdr., rwlbuis, rune+blink, Stephen Chennney, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Redraw only dirty area for accelerated 2D Canvas. When 2D Canvas got it's own layer, the whole canvas was getting updated instead of only the dirty rect. BUG=382958 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176815

Patch Set 1 #

Total comments: 2

Patch Set 2 : New patch with comments applied #

Total comments: 2

Patch Set 3 : New patch with cleanup applied #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -11 lines) Patch
M Source/core/html/canvas/CanvasRenderingContext2D.cpp View 1 2 1 chunk +6 lines, -9 lines 0 comments Download
M Source/core/rendering/RenderBoxModelObject.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/rendering/compositing/CompositedLayerMapping.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 22 (0 generated)
hj.r.chung
PTAL! I was working on this issue before I spotted the bug, and am uploading ...
6 years, 6 months ago (2014-06-20 08:10:28 UTC) #1
Justin Novosad
On 2014/06/20 08:10:28, hj.r.chung wrote: > PTAL! > I was working on this issue before ...
6 years, 6 months ago (2014-06-20 13:39:11 UTC) #2
Justin Novosad
https://codereview.chromium.org/341213002/diff/1/Source/core/html/HTMLCanvasElement.cpp File Source/core/html/HTMLCanvasElement.cpp (right): https://codereview.chromium.org/341213002/diff/1/Source/core/html/HTMLCanvasElement.cpp#newcode222 Source/core/html/HTMLCanvasElement.cpp:222: m_dirtyRect = rect; Storing the rect for later is ...
6 years, 6 months ago (2014-06-20 14:06:53 UTC) #3
abarth-chromium
https://codereview.chromium.org/341213002/diff/1/Source/core/rendering/compositing/CompositedLayerMapping.cpp File Source/core/rendering/compositing/CompositedLayerMapping.cpp (right): https://codereview.chromium.org/341213002/diff/1/Source/core/rendering/compositing/CompositedLayerMapping.cpp#newcode1718 Source/core/rendering/compositing/CompositedLayerMapping.cpp:1718: return; Rather than using this awkward notification pipeline, can ...
6 years, 6 months ago (2014-06-20 15:19:48 UTC) #4
hj.r.chung
On 2014/06/20 14:06:53, junov wrote: > https://codereview.chromium.org/341213002/diff/1/Source/core/html/HTMLCanvasElement.cpp > File Source/core/html/HTMLCanvasElement.cpp (right): > > https://codereview.chromium.org/341213002/diff/1/Source/core/html/HTMLCanvasElement.cpp#newcode222 > ...
6 years, 6 months ago (2014-06-21 02:09:47 UTC) #5
jamesr
In the case where the canvas is accelerated (i.e. is drawing the canvas contents to ...
6 years, 6 months ago (2014-06-22 23:06:22 UTC) #6
hj.r.chung
PTAL! I took jamesr's approach since it looked reasonable to remove the indirections
6 years, 6 months ago (2014-06-23 06:46:03 UTC) #7
Justin Novosad
On 2014/06/23 06:46:03, hj.r.chung wrote: > PTAL! > I took jamesr's approach since it looked ...
6 years, 6 months ago (2014-06-23 14:47:29 UTC) #8
Justin Novosad
On 2014/06/23 14:47:29, junov wrote: > On 2014/06/23 06:46:03, hj.r.chung wrote: > > PTAL! > ...
6 years, 6 months ago (2014-06-23 14:59:39 UTC) #9
abarth-chromium
On 2014/06/23 at 14:59:39, junov wrote: > With this direct access to the WebLayer, it ...
6 years, 6 months ago (2014-06-23 17:08:13 UTC) #10
abarth-chromium
https://codereview.chromium.org/341213002/diff/20001/Source/core/html/canvas/CanvasRenderingContext2D.cpp File Source/core/html/canvas/CanvasRenderingContext2D.cpp (right): https://codereview.chromium.org/341213002/diff/20001/Source/core/html/canvas/CanvasRenderingContext2D.cpp#newcode1746 Source/core/html/canvas/CanvasRenderingContext2D.cpp:1746: if (renderBox && renderBox->hasAcceleratedCompositing()) { I wonder if we ...
6 years, 6 months ago (2014-06-23 17:09:05 UTC) #11
Justin Novosad
On 2014/06/23 17:08:13, abarth wrote: > On 2014/06/23 at 14:59:39, junov wrote: > > With ...
6 years, 6 months ago (2014-06-23 17:14:45 UTC) #12
jamesr
Please test that this works properly with reflections (I can't figure out how they work ...
6 years, 6 months ago (2014-06-23 17:41:44 UTC) #13
hj.r.chung
PTAL, I've confirmed that reflection is working properly, and cleaned up no longer used code.
6 years, 6 months ago (2014-06-24 02:40:52 UTC) #14
hj.r.chung
On 2014/06/23 17:14:45, junov wrote: > On 2014/06/23 17:08:13, abarth wrote: > > On 2014/06/23 ...
6 years, 6 months ago (2014-06-24 02:46:45 UTC) #15
abarth-chromium
On 2014/06/24 at 02:46:45, heejin.r.chung wrote: > On 2014/06/23 17:14:45, junov wrote: > > On ...
6 years, 6 months ago (2014-06-24 04:00:41 UTC) #16
abarth-chromium
lgtm
6 years, 6 months ago (2014-06-24 04:01:05 UTC) #17
hj.r.chung
The CQ bit was checked by heejin.r.chung@samsung.com
6 years, 6 months ago (2014-06-24 04:03:41 UTC) #18
hj.r.chung
On 2014/06/24 04:01:05, abarth wrote: > lgtm Thank you all for the reviews!
6 years, 6 months ago (2014-06-24 04:04:02 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/heejin.r.chung@samsung.com/341213002/40001
6 years, 6 months ago (2014-06-24 04:04:37 UTC) #20
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_gpu_triggered_tests on tryserver.chromium.gpu ...
6 years, 6 months ago (2014-06-24 05:07:35 UTC) #21
commit-bot: I haz the power
6 years, 6 months ago (2014-06-24 06:03:13 UTC) #22
Message was sent while issue was closed.
Change committed as 176815

Powered by Google App Engine
This is Rietveld 408576698