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

Issue 454843002: cc: Do bitmap conversion for RasterBuffer in the worker thread. (Closed)

Created:
6 years, 4 months ago by auygun
Modified:
6 years, 3 months ago
Reviewers:
danakj, reveman, vmpstr, alokp
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

cc: Do bitmap conversion for RasterBuffer in the worker thread. - Moved RasterBuffer from ResourceProvider to its own file. It's now the public interface used by raster tasks. - Added Acquire/ReleaseSkCanvas() interface into RasterBuffer. - Bitmap conversion is now done in raster worker thread through RasterBuffer interface. BUG=None Committed: https://crrev.com/5df4cc9eb3ef7e320328d07437e05d478f052a10 Cr-Commit-Position: refs/heads/master@{#291910}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Make RasterBuffer the public interface used by raster tasks. #

Total comments: 8

Patch Set 3 : Changed RasterBuffer interface. #

Total comments: 22

Patch Set 4 : Code refactoring. #

Total comments: 24

Patch Set 5 : More code refactoring and some interface changes. #

Total comments: 12

Patch Set 6 : Fix and cleanup. #

Total comments: 19

Patch Set 7 : Miscellaneous fixes #

Total comments: 6

Patch Set 8 : Fix. #

Patch Set 9 : Rebased on top of master #

Patch Set 10 : Fix. #

Patch Set 11 : Fix for dbg unittest. #

Patch Set 12 : Revert previous patch set. #

Patch Set 13 : Rebase on master. #

Patch Set 14 : Fix. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+373 lines, -346 lines) Patch
M cc/cc.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M cc/resources/gpu_raster_worker_pool.h View 1 4 1 chunk +2 lines, -2 lines 0 comments Download
M cc/resources/gpu_raster_worker_pool.cc View 1 2 4 1 chunk +4 lines, -4 lines 0 comments Download
M cc/resources/image_copy_raster_worker_pool.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -2 lines 0 comments Download
M cc/resources/image_copy_raster_worker_pool.cc View 1 2 4 2 chunks +7 lines, -5 lines 0 comments Download
M cc/resources/image_raster_worker_pool.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -2 lines 0 comments Download
M cc/resources/image_raster_worker_pool.cc View 1 2 4 1 chunk +7 lines, -7 lines 0 comments Download
M cc/resources/pixel_buffer_raster_worker_pool.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -2 lines 0 comments Download
M cc/resources/pixel_buffer_raster_worker_pool.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +14 lines, -26 lines 0 comments Download
A cc/resources/raster_buffer.h View 1 2 3 4 1 chunk +25 lines, -0 lines 0 comments Download
M cc/resources/raster_worker_pool_perftest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -2 lines 0 comments Download
M cc/resources/raster_worker_pool_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -2 lines 0 comments Download
M cc/resources/rasterizer.h View 1 2 3 4 1 chunk +3 lines, -4 lines 0 comments Download
M cc/resources/resource_provider.h View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +44 lines, -73 lines 0 comments Download
M cc/resources/resource_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +190 lines, -164 lines 0 comments Download
M cc/resources/resource_provider_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 11 chunks +43 lines, -35 lines 0 comments Download
M cc/resources/tile_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 7 chunks +19 lines, -12 lines 3 comments Download
M cc/resources/tile_manager_perftest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -2 lines 0 comments Download
M cc/test/fake_tile_manager.cc View 1 4 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 69 (0 generated)
auygun
@reviewer: How does this patch look to you?
6 years, 4 months ago (2014-08-08 09:48:36 UTC) #1
reveman
https://codereview.chromium.org/454843002/diff/1/cc/resources/rasterizer.h File cc/resources/rasterizer.h (right): https://codereview.chromium.org/454843002/diff/1/cc/resources/rasterizer.h#newcode22 cc/resources/rasterizer.h:22: class RasterCanvas { I think this interface deserves it's ...
6 years, 4 months ago (2014-08-11 11:46:21 UTC) #2
auygun
https://codereview.chromium.org/454843002/diff/1/cc/resources/resource_provider.h File cc/resources/resource_provider.h (right): https://codereview.chromium.org/454843002/diff/1/cc/resources/resource_provider.h#newcode449 cc/resources/resource_provider.h:449: class RasterBuffer : public RasterCanvas { On 2014/08/11 11:46:21, ...
6 years, 4 months ago (2014-08-11 14:03:01 UTC) #3
auygun
https://codereview.chromium.org/454843002/diff/1/cc/resources/rasterizer.h File cc/resources/rasterizer.h (right): https://codereview.chromium.org/454843002/diff/1/cc/resources/rasterizer.h#newcode22 cc/resources/rasterizer.h:22: class RasterCanvas { On 2014/08/11 11:46:20, reveman wrote: > ...
6 years, 4 months ago (2014-08-11 15:45:43 UTC) #4
reveman
https://codereview.chromium.org/454843002/diff/20001/cc/resources/raster_buffer.h File cc/resources/raster_buffer.h (right): https://codereview.chromium.org/454843002/diff/20001/cc/resources/raster_buffer.h#newcode15 cc/resources/raster_buffer.h:15: virtual void Flush() = 0; How about Acquire/ReleaseSkCanvas()? Acquire ...
6 years, 4 months ago (2014-08-11 20:32:37 UTC) #5
auygun
https://codereview.chromium.org/454843002/diff/20001/cc/resources/raster_buffer.h File cc/resources/raster_buffer.h (right): https://codereview.chromium.org/454843002/diff/20001/cc/resources/raster_buffer.h#newcode15 cc/resources/raster_buffer.h:15: virtual void Flush() = 0; On 2014/08/11 20:32:36, reveman ...
6 years, 4 months ago (2014-08-12 13:36:36 UTC) #6
reveman
This looks good. I understand that some of the requests that are part of this ...
6 years, 4 months ago (2014-08-12 14:31:27 UTC) #7
auygun
https://codereview.chromium.org/454843002/diff/40001/cc/resources/resource_provider.h File cc/resources/resource_provider.h (right): https://codereview.chromium.org/454843002/diff/40001/cc/resources/resource_provider.h#newcode340 cc/resources/resource_provider.h:340: bool UnmapPixelRasterBuffer(ResourceId id); On 2014/08/12 14:31:26, reveman wrote: > ...
6 years, 4 months ago (2014-08-12 15:24:01 UTC) #8
reveman
https://codereview.chromium.org/454843002/diff/40001/cc/resources/resource_provider.h File cc/resources/resource_provider.h (right): https://codereview.chromium.org/454843002/diff/40001/cc/resources/resource_provider.h#newcode340 cc/resources/resource_provider.h:340: bool UnmapPixelRasterBuffer(ResourceId id); On 2014/08/12 15:24:01, auygun wrote: > ...
6 years, 4 months ago (2014-08-12 15:54:28 UTC) #9
auygun
https://codereview.chromium.org/454843002/diff/40001/cc/resources/raster_buffer.h File cc/resources/raster_buffer.h (right): https://codereview.chromium.org/454843002/diff/40001/cc/resources/raster_buffer.h#newcode15 cc/resources/raster_buffer.h:15: virtual void ReleaseSkCanvas() = 0; On 2014/08/12 14:31:26, reveman ...
6 years, 4 months ago (2014-08-13 14:18:54 UTC) #10
auygun
"git cl upload" doesn't want to send another patch set for some reason. It wants ...
6 years, 4 months ago (2014-08-13 16:22:32 UTC) #11
danakj
git cl issue 454843002
6 years, 4 months ago (2014-08-13 16:24:31 UTC) #12
auygun
I've uploaded a new patch set. But it doesn't look like a squashed version of ...
6 years, 4 months ago (2014-08-13 16:58:05 UTC) #13
reveman
https://codereview.chromium.org/454843002/diff/60001/cc/resources/image_copy_raster_worker_pool.cc File cc/resources/image_copy_raster_worker_pool.cc (right): https://codereview.chromium.org/454843002/diff/60001/cc/resources/image_copy_raster_worker_pool.cc#newcode194 cc/resources/image_copy_raster_worker_pool.cc:194: resource_provider_->ReleaseImageRasterBuffer(resource->id()); Let's keep having this return true when contents ...
6 years, 4 months ago (2014-08-13 19:19:50 UTC) #14
auygun
https://codereview.chromium.org/454843002/diff/60001/cc/resources/image_copy_raster_worker_pool.cc File cc/resources/image_copy_raster_worker_pool.cc (right): https://codereview.chromium.org/454843002/diff/60001/cc/resources/image_copy_raster_worker_pool.cc#newcode194 cc/resources/image_copy_raster_worker_pool.cc:194: resource_provider_->ReleaseImageRasterBuffer(resource->id()); On 2014/08/13 19:19:49, reveman wrote: > Let's keep ...
6 years, 4 months ago (2014-08-14 10:35:43 UTC) #15
reveman
https://codereview.chromium.org/454843002/diff/60001/cc/resources/pixel_buffer_raster_worker_pool.cc File cc/resources/pixel_buffer_raster_worker_pool.cc (right): https://codereview.chromium.org/454843002/diff/60001/cc/resources/pixel_buffer_raster_worker_pool.cc#newcode688 cc/resources/pixel_buffer_raster_worker_pool.cc:688: if (!raster_task->content_has_changed()) { On 2014/08/14 10:35:42, auygun wrote: > ...
6 years, 4 months ago (2014-08-14 12:26:37 UTC) #16
auygun
https://codereview.chromium.org/454843002/diff/80001/cc/resources/resource_provider.cc File cc/resources/resource_provider.cc (right): https://codereview.chromium.org/454843002/diff/80001/cc/resources/resource_provider.cc#newcode503 cc/resources/resource_provider.cc:503: resource_provider_->UnmapImage(resource_); On 2014/08/14 12:26:36, reveman wrote: > what if ...
6 years, 4 months ago (2014-08-14 15:38:40 UTC) #17
auygun
On 2014/08/14 15:38:40, auygun wrote: > https://codereview.chromium.org/454843002/diff/80001/cc/resources/resource_provider.cc > File cc/resources/resource_provider.cc (right): > > https://codereview.chromium.org/454843002/diff/80001/cc/resources/resource_provider.cc#newcode503 > ...
6 years, 4 months ago (2014-08-14 16:04:03 UTC) #18
reveman
https://codereview.chromium.org/454843002/diff/80001/cc/resources/resource_provider.cc File cc/resources/resource_provider.cc (right): https://codereview.chromium.org/454843002/diff/80001/cc/resources/resource_provider.cc#newcode503 cc/resources/resource_provider.cc:503: resource_provider_->UnmapImage(resource_); On 2014/08/14 15:38:40, auygun wrote: > On 2014/08/14 ...
6 years, 4 months ago (2014-08-14 16:14:38 UTC) #19
auygun
https://codereview.chromium.org/454843002/diff/60001/cc/resources/pixel_buffer_raster_worker_pool.cc File cc/resources/pixel_buffer_raster_worker_pool.cc (right): https://codereview.chromium.org/454843002/diff/60001/cc/resources/pixel_buffer_raster_worker_pool.cc#newcode688 cc/resources/pixel_buffer_raster_worker_pool.cc:688: if (!raster_task->content_has_changed()) { On 2014/08/14 12:26:36, reveman wrote: > ...
6 years, 4 months ago (2014-08-15 09:20:41 UTC) #20
reveman
https://codereview.chromium.org/454843002/diff/80001/cc/resources/raster_buffer.h File cc/resources/raster_buffer.h (right): https://codereview.chromium.org/454843002/diff/80001/cc/resources/raster_buffer.h#newcode17 cc/resources/raster_buffer.h:17: virtual void ReleaseSkCanvas(const skia::RefPtr<SkCanvas>& canvas) = 0; On 2014/08/15 ...
6 years, 4 months ago (2014-08-15 11:54:32 UTC) #21
auygun
https://codereview.chromium.org/454843002/diff/100001/cc/resources/pixel_buffer_raster_worker_pool.cc File cc/resources/pixel_buffer_raster_worker_pool.cc (left): https://codereview.chromium.org/454843002/diff/100001/cc/resources/pixel_buffer_raster_worker_pool.cc#oldcode720 cc/resources/pixel_buffer_raster_worker_pool.cc:720: state.required_for_activation; On 2014/08/15 11:54:31, reveman wrote: > We still ...
6 years, 4 months ago (2014-08-15 12:24:20 UTC) #22
reveman
this looks great. address some of the last remaining comments and I think this is ...
6 years, 4 months ago (2014-08-15 13:59:34 UTC) #23
auygun
https://codereview.chromium.org/454843002/diff/80001/cc/resources/raster_buffer.h File cc/resources/raster_buffer.h (right): https://codereview.chromium.org/454843002/diff/80001/cc/resources/raster_buffer.h#newcode17 cc/resources/raster_buffer.h:17: virtual void ReleaseSkCanvas(const skia::RefPtr<SkCanvas>& canvas) = 0; On 2014/08/15 ...
6 years, 4 months ago (2014-08-15 15:08:23 UTC) #24
reveman
https://codereview.chromium.org/454843002/diff/120001/cc/resources/resource_provider.cc File cc/resources/resource_provider.cc (right): https://codereview.chromium.org/454843002/diff/120001/cc/resources/resource_provider.cc#newcode493 cc/resources/resource_provider.cc:493: stride_ = 0; do you need to reset raster_bitmap_changed_ ...
6 years, 4 months ago (2014-08-16 08:36:18 UTC) #25
auygun
https://codereview.chromium.org/454843002/diff/120001/cc/resources/resource_provider.cc File cc/resources/resource_provider.cc (right): https://codereview.chromium.org/454843002/diff/120001/cc/resources/resource_provider.cc#newcode493 cc/resources/resource_provider.cc:493: stride_ = 0; On 2014/08/16 08:36:18, reveman wrote: > ...
6 years, 4 months ago (2014-08-18 08:00:50 UTC) #26
reveman
lgtm
6 years, 4 months ago (2014-08-18 09:44:15 UTC) #27
auygun
The CQ bit was checked by auygun@opera.com
6 years, 4 months ago (2014-08-18 11:26:53 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/auygun@opera.com/454843002/140001
6 years, 4 months ago (2014-08-18 11:27:42 UTC) #29
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_gpu on tryserver.chromium.gpu ...
6 years, 4 months ago (2014-08-18 11:38:33 UTC) #30
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-18 11:39:57 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/43025) ios_dbg_simulator on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator/builds/6530) ios_rel_device ...
6 years, 4 months ago (2014-08-18 11:39:58 UTC) #32
auygun
I've just done a rebase on top of master. Does it need another review now?
6 years, 4 months ago (2014-08-18 12:42:56 UTC) #33
auygun
The CQ bit was checked by auygun@opera.com
6 years, 4 months ago (2014-08-18 13:06:14 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/auygun@opera.com/454843002/160001
6 years, 4 months ago (2014-08-18 13:07:02 UTC) #35
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_gpu_triggered_tests on tryserver.chromium.gpu ...
6 years, 4 months ago (2014-08-18 15:02:29 UTC) #36
auygun
The CQ bit was unchecked by auygun@opera.com
6 years, 4 months ago (2014-08-18 15:04:00 UTC) #37
auygun
The CQ bit was checked by auygun@opera.com
6 years, 4 months ago (2014-08-18 15:08:04 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/auygun@opera.com/454843002/180001
6 years, 4 months ago (2014-08-18 15:08:38 UTC) #39
auygun
The CQ bit was unchecked by auygun@opera.com
6 years, 4 months ago (2014-08-18 16:20:52 UTC) #40
auygun
cc_unittests in debug hit the DCHECK below. It's called from RasterTaskImpl::Analyze() [FATAL:picture.cc(390)] Check failed: raster_thread_checker_.CalledOnValidThread(). ...
6 years, 4 months ago (2014-08-19 10:27:00 UTC) #41
auygun
The CQ bit was checked by auygun@opera.com
6 years, 4 months ago (2014-08-19 10:27:15 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/auygun@opera.com/454843002/200001
6 years, 4 months ago (2014-08-19 10:28:23 UTC) #43
reveman
The CQ bit was unchecked by reveman@chromium.org
6 years, 4 months ago (2014-08-19 11:31:56 UTC) #44
reveman
On 2014/08/19 10:27:00, auygun wrote: > cc_unittests in debug hit the DCHECK below. It's called ...
6 years, 4 months ago (2014-08-19 11:34:58 UTC) #45
auygun
On 2014/08/19 11:34:58, reveman wrote: > On 2014/08/19 10:27:00, auygun wrote: > > cc_unittests in ...
6 years, 4 months ago (2014-08-19 12:14:12 UTC) #46
reveman
On 2014/08/19 12:14:12, auygun wrote: > On 2014/08/19 11:34:58, reveman wrote: > > On 2014/08/19 ...
6 years, 4 months ago (2014-08-19 12:27:11 UTC) #47
auygun
On 2014/08/19 12:27:11, reveman wrote: > On 2014/08/19 12:14:12, auygun wrote: > > On 2014/08/19 ...
6 years, 4 months ago (2014-08-19 12:40:10 UTC) #48
reveman
On 2014/08/19 12:40:10, auygun wrote: > On 2014/08/19 12:27:11, reveman wrote: > > On 2014/08/19 ...
6 years, 4 months ago (2014-08-19 12:56:25 UTC) #49
reveman
+alok any idea why we have main-thread-paint test for gpu rasterization?
6 years, 4 months ago (2014-08-19 12:57:19 UTC) #50
auygun
On 2014/08/19 12:56:25, reveman wrote: > On 2014/08/19 12:40:10, auygun wrote: > > On 2014/08/19 ...
6 years, 4 months ago (2014-08-19 13:37:31 UTC) #51
reveman
On 2014/08/19 13:37:31, auygun wrote: > On 2014/08/19 12:56:25, reveman wrote: > > On 2014/08/19 ...
6 years, 4 months ago (2014-08-19 14:41:09 UTC) #52
reveman
On 2014/08/19 13:37:31, auygun wrote: > On 2014/08/19 12:56:25, reveman wrote: > > On 2014/08/19 ...
6 years, 4 months ago (2014-08-19 14:41:10 UTC) #53
auygun
On 2014/08/19 14:41:10, reveman wrote: > On 2014/08/19 13:37:31, auygun wrote: > > On 2014/08/19 ...
6 years, 4 months ago (2014-08-19 16:13:23 UTC) #54
alokp
+boliu who maintains LayerTreeHostTestDeferredInitializeWithGpuRasterization
6 years, 4 months ago (2014-08-19 16:24:21 UTC) #55
boliu
On 2014/08/19 16:24:21, Alok Priyadarshi wrote: > +boliu who maintains LayerTreeHostTestDeferredInitializeWithGpuRasterization Long thread. What should ...
6 years, 4 months ago (2014-08-19 16:29:43 UTC) #56
boliu
On 2014/08/19 16:29:43, boliu wrote: > On 2014/08/19 16:24:21, Alok Priyadarshi wrote: > > +boliu ...
6 years, 4 months ago (2014-08-19 16:41:57 UTC) #57
auygun
On 2014/08/19 16:41:57, boliu wrote: > On 2014/08/19 16:29:43, boliu wrote: > > On 2014/08/19 ...
6 years, 4 months ago (2014-08-19 16:52:00 UTC) #58
alokp
boliu: I think they needed help in figuring out why LayerTreeHostTestDeferredInitializeWithGpuRasterization.RunMultiThread_DirectRenderer_MainThreadPaint is failing.
6 years, 4 months ago (2014-08-19 16:56:43 UTC) #59
auygun
LayerTreeHostTestDeferredInitializeWithGpuRasterization.RunMultiThread_DirectRenderer_MainThreadPaint is failing in debug by hitting DCHECK: [FATAL:picture.cc(390)] Check failed: raster_thread_checker_.CalledOnValidThread(). during analyze in ...
6 years, 4 months ago (2014-08-19 17:13:16 UTC) #60
auygun
Unit test doesn't fail after rebasing on latest master. I've just reverted patch set 11. ...
6 years, 4 months ago (2014-08-25 14:31:56 UTC) #61
auygun
The CQ bit was checked by auygun@opera.com
6 years, 3 months ago (2014-08-26 13:15:44 UTC) #62
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/auygun@opera.com/454843002/260001
6 years, 3 months ago (2014-08-26 13:16:14 UTC) #63
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_tests_recipe on tryserver.chromium.linux ...
6 years, 3 months ago (2014-08-26 14:25:39 UTC) #64
commit-bot: I haz the power
Committed patchset #14 (260001) as c69c9e426481a89dd3aec9474f683c56108cd3a2
6 years, 3 months ago (2014-08-26 15:47:45 UTC) #65
commit-bot: I haz the power
Patchset 14 (id:??) landed as https://crrev.com/5df4cc9eb3ef7e320328d07437e05d478f052a10 Cr-Commit-Position: refs/heads/master@{#291910}
6 years, 3 months ago (2014-09-10 02:43:04 UTC) #66
reveman
https://codereview.chromium.org/454843002/diff/260001/cc/resources/tile_manager.cc File cc/resources/tile_manager.cc (right): https://codereview.chromium.org/454843002/diff/260001/cc/resources/tile_manager.cc#newcode128 cc/resources/tile_manager.cc:128: canvas->save(); Sorry, I think I missed this while reviewing. ...
6 years, 3 months ago (2014-09-10 21:12:22 UTC) #67
auygun
https://codereview.chromium.org/454843002/diff/260001/cc/resources/tile_manager.cc File cc/resources/tile_manager.cc (right): https://codereview.chromium.org/454843002/diff/260001/cc/resources/tile_manager.cc#newcode128 cc/resources/tile_manager.cc:128: canvas->save(); On 2014/09/10 21:12:22, reveman wrote: > Sorry, I ...
6 years, 3 months ago (2014-09-11 08:27:07 UTC) #68
reveman
6 years, 3 months ago (2014-09-11 16:47:13 UTC) #69
Message was sent while issue was closed.
https://codereview.chromium.org/454843002/diff/260001/cc/resources/tile_manag...
File cc/resources/tile_manager.cc (right):

https://codereview.chromium.org/454843002/diff/260001/cc/resources/tile_manag...
cc/resources/tile_manager.cc:128: canvas->save();
On 2014/09/11 08:27:07, auygun wrote:
> On 2014/09/10 21:12:22, reveman wrote:
> > Sorry, I think I missed this while reviewing. Why did you add
save()/restore()
> > calls to this function? Are they necessary for all raster buffer
> > implementations?
> 
> All tiles were black when using GPU raster buffer. Adding save/restore fixed
it.
> But the pixel raster buffer works without save/restore.
> I thought it would be good to have save/restore regardless of which raster
> buffer is used so that ReleaseSkCanvas() can also use the returned canvas
(i.e.
> marking tiles for debugging purposes).

OK, thanks! FYI, I might move this into the raster buffer as part of a large
refactor I'm working on.

Powered by Google App Engine
This is Rietveld 408576698