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

Issue 475633008: cc: Use impl-side painting in LTH context lost tests. (Closed)

Created:
6 years, 4 months ago by sohanjg
Modified:
5 years, 1 month ago
Reviewers:
danakj, sohanjg_, enne (OOO)
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

cc: Use impl-side painting in LTH context lost tests. BUG=401492 Committed: https://crrev.com/fa27ef28c604c3bd343f7d8298ac3f328a9a0037 Cr-Commit-Position: refs/heads/master@{#295241}

Patch Set 1 #

Patch Set 2 : update tests to use PictureLayers along with Content. #

Total comments: 35

Patch Set 3 : review comments updated. #

Patch Set 4 : initialize locals #

Patch Set 5 : draw non-solid color. #

Total comments: 4

Patch Set 6 : updated non solid color painting #

Patch Set 7 : set high res to draw when new output surface is used. #

Total comments: 1

Patch Set 8 : rebase to ToT #

Patch Set 9 : check isReadyToDraw for evict texture test. #

Total comments: 20

Patch Set 10 : review comments addressed. #

Total comments: 3

Patch Set 11 : review comments addressed. #

Patch Set 12 : remove extra add_draw_rect #

Unified diffs Side-by-side diffs Delta from patch set Stats (+298 lines, -109 lines) Patch
M cc/test/fake_picture_layer.h View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M cc/test/fake_picture_layer.cc View 1 2 2 chunks +6 lines, -1 line 0 comments Download
M cc/test/fake_picture_layer_impl.h View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -0 lines 0 comments Download
M cc/test/fake_picture_layer_impl.cc View 1 2 3 4 5 6 7 8 9 4 chunks +11 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 18 chunks +87 lines, -34 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_context.cc View 1 2 3 4 5 6 7 8 9 10 11 19 chunks +177 lines, -71 lines 0 comments Download

Messages

Total messages: 37 (4 generated)
sohanjg
sohan.jyoti@samsung.com changed reviewers: + danakj@chromium.org, enne@chromium.org
6 years, 3 months ago (2014-08-26 09:36:48 UTC) #1
sohanjg
Can you please take a look? Thanks. https://codereview.chromium.org/475633008/diff/20001/cc/trees/layer_tree_host_unittest_context.cc File cc/trees/layer_tree_host_unittest_context.cc (left): https://codereview.chromium.org/475633008/diff/20001/cc/trees/layer_tree_host_unittest_context.cc#oldcode473 cc/trees/layer_tree_host_unittest_context.cc:473: EXPECT_TRUE(layer_->HaveBackingAt(0, 0)); ...
6 years, 3 months ago (2014-08-26 09:36:48 UTC) #2
sohanjg
https://codereview.chromium.org/475633008/diff/20001/cc/trees/layer_tree_host_unittest_context.cc File cc/trees/layer_tree_host_unittest_context.cc (left): https://codereview.chromium.org/475633008/diff/20001/cc/trees/layer_tree_host_unittest_context.cc#oldcode654 cc/trees/layer_tree_host_unittest_context.cc:654: EXPECT_EQ(0u, grandchild->lost_output_surface_count()); On 2014/08/26 09:36:47, sohanjg wrote: > if ...
6 years, 3 months ago (2014-08-26 10:56:26 UTC) #3
danakj
https://codereview.chromium.org/475633008/diff/20001/cc/trees/layer_tree_host_unittest_context.cc File cc/trees/layer_tree_host_unittest_context.cc (left): https://codereview.chromium.org/475633008/diff/20001/cc/trees/layer_tree_host_unittest_context.cc#oldcode473 cc/trees/layer_tree_host_unittest_context.cc:473: EXPECT_TRUE(layer_->HaveBackingAt(0, 0)); On 2014/08/26 09:36:47, sohanjg wrote: > if ...
6 years, 3 months ago (2014-08-26 18:54:41 UTC) #4
sohanjg
please take a look, thanks. https://codereview.chromium.org/475633008/diff/20001/cc/trees/layer_tree_host_unittest_context.cc File cc/trees/layer_tree_host_unittest_context.cc (left): https://codereview.chromium.org/475633008/diff/20001/cc/trees/layer_tree_host_unittest_context.cc#oldcode473 cc/trees/layer_tree_host_unittest_context.cc:473: EXPECT_TRUE(layer_->HaveBackingAt(0, 0)); On 2014/08/26 ...
6 years, 3 months ago (2014-08-27 06:59:50 UTC) #5
danakj
https://codereview.chromium.org/475633008/diff/20001/cc/trees/layer_tree_host_unittest_context.cc File cc/trees/layer_tree_host_unittest_context.cc (right): https://codereview.chromium.org/475633008/diff/20001/cc/trees/layer_tree_host_unittest_context.cc#newcode354 cc/trees/layer_tree_host_unittest_context.cc:354: EXPECT_TRUE(picture_impl->HasValidTilePriorities()); On 2014/08/27 06:59:50, sohanjg wrote: > On 2014/08/26 ...
6 years, 3 months ago (2014-08-27 12:59:26 UTC) #6
sohanjg
https://codereview.chromium.org/475633008/diff/20001/cc/trees/layer_tree_host_unittest_context.cc File cc/trees/layer_tree_host_unittest_context.cc (right): https://codereview.chromium.org/475633008/diff/20001/cc/trees/layer_tree_host_unittest_context.cc#newcode354 cc/trees/layer_tree_host_unittest_context.cc:354: EXPECT_TRUE(picture_impl->HasValidTilePriorities()); On 2014/08/27 12:59:26, danakj wrote: > On 2014/08/27 ...
6 years, 3 months ago (2014-08-27 13:33:01 UTC) #7
danakj
https://codereview.chromium.org/475633008/diff/20001/cc/trees/layer_tree_host_unittest_context.cc File cc/trees/layer_tree_host_unittest_context.cc (right): https://codereview.chromium.org/475633008/diff/20001/cc/trees/layer_tree_host_unittest_context.cc#newcode354 cc/trees/layer_tree_host_unittest_context.cc:354: EXPECT_TRUE(picture_impl->HasValidTilePriorities()); On 2014/08/27 13:33:01, sohanjg wrote: > On 2014/08/27 ...
6 years, 3 months ago (2014-08-27 13:49:32 UTC) #8
sohanjg
https://codereview.chromium.org/475633008/diff/20001/cc/trees/layer_tree_host_unittest_context.cc File cc/trees/layer_tree_host_unittest_context.cc (right): https://codereview.chromium.org/475633008/diff/20001/cc/trees/layer_tree_host_unittest_context.cc#newcode354 cc/trees/layer_tree_host_unittest_context.cc:354: EXPECT_TRUE(picture_impl->HasValidTilePriorities()); On 2014/08/27 13:49:32, danakj wrote: > On 2014/08/27 ...
6 years, 3 months ago (2014-08-27 14:13:35 UTC) #9
sohanjg
https://codereview.chromium.org/475633008/diff/20001/cc/trees/layer_tree_host_unittest_context.cc File cc/trees/layer_tree_host_unittest_context.cc (right): https://codereview.chromium.org/475633008/diff/20001/cc/trees/layer_tree_host_unittest_context.cc#newcode354 cc/trees/layer_tree_host_unittest_context.cc:354: EXPECT_TRUE(picture_impl->HasValidTilePriorities()); On 2014/08/27 14:13:34, sohanjg wrote: > On 2014/08/27 ...
6 years, 3 months ago (2014-09-01 10:51:28 UTC) #10
danakj
https://codereview.chromium.org/475633008/diff/20001/cc/trees/layer_tree_host_unittest_context.cc File cc/trees/layer_tree_host_unittest_context.cc (right): https://codereview.chromium.org/475633008/diff/20001/cc/trees/layer_tree_host_unittest_context.cc#newcode354 cc/trees/layer_tree_host_unittest_context.cc:354: EXPECT_TRUE(picture_impl->HasValidTilePriorities()); On 2014/09/01 10:51:28, sohanjg wrote: > On 2014/08/27 ...
6 years, 3 months ago (2014-09-03 19:51:40 UTC) #11
enne (OOO)
On 2014/09/03 at 19:51:40, danakj wrote: > > Sorry for the late response. > > ...
6 years, 3 months ago (2014-09-03 19:59:18 UTC) #12
danakj
On Wed, Sep 3, 2014 at 3:59 PM, <enne@chromium.org> wrote: > On 2014/09/03 at 19:51:40, ...
6 years, 3 months ago (2014-09-03 20:00:40 UTC) #13
sohanjg
On 2014/09/03 20:00:40, danakj wrote: > On Wed, Sep 3, 2014 at 3:59 PM, <mailto:enne@chromium.org> ...
6 years, 3 months ago (2014-09-04 01:37:07 UTC) #14
danakj
On 2014/09/04 01:37:07, sohanjg wrote: > On 2014/09/03 20:00:40, danakj wrote: > > On Wed, ...
6 years, 3 months ago (2014-09-04 04:40:13 UTC) #15
sohanjg
I am missing something in client_ non solid color paint, can you please give your ...
6 years, 3 months ago (2014-09-04 12:20:52 UTC) #16
danakj
https://codereview.chromium.org/475633008/diff/80001/cc/trees/layer_tree_host_unittest_context.cc File cc/trees/layer_tree_host_unittest_context.cc (right): https://codereview.chromium.org/475633008/diff/80001/cc/trees/layer_tree_host_unittest_context.cc#newcode336 cc/trees/layer_tree_host_unittest_context.cc:336: client_.PaintContents(canvas, You need to change what PaintContents does, not ...
6 years, 3 months ago (2014-09-04 14:19:35 UTC) #17
sohanjg
https://codereview.chromium.org/475633008/diff/80001/cc/trees/layer_tree_host_unittest_context.cc File cc/trees/layer_tree_host_unittest_context.cc (right): https://codereview.chromium.org/475633008/diff/80001/cc/trees/layer_tree_host_unittest_context.cc#newcode336 cc/trees/layer_tree_host_unittest_context.cc:336: client_.PaintContents(canvas, On 2014/09/04 14:19:35, danakj wrote: > You need ...
6 years, 3 months ago (2014-09-05 15:15:46 UTC) #18
danakj
On 2014/09/05 15:15:46, sohanjg wrote: > https://codereview.chromium.org/475633008/diff/80001/cc/trees/layer_tree_host_unittest_context.cc > File cc/trees/layer_tree_host_unittest_context.cc (right): > > https://codereview.chromium.org/475633008/diff/80001/cc/trees/layer_tree_host_unittest_context.cc#newcode336 > ...
6 years, 3 months ago (2014-09-05 15:19:35 UTC) #19
sohanjg
On 2014/09/05 15:19:35, danakj wrote: > On 2014/09/05 15:15:46, sohanjg wrote: > > > https://codereview.chromium.org/475633008/diff/80001/cc/trees/layer_tree_host_unittest_context.cc ...
6 years, 3 months ago (2014-09-08 10:12:06 UTC) #20
sohanjg
Please ignore the previous comment on branching to new CL, its not meaningful. Please take ...
6 years, 3 months ago (2014-09-09 09:30:44 UTC) #21
sohanjg
please take a look, thanks ! https://codereview.chromium.org/475633008/diff/120001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/475633008/diff/120001/cc/trees/layer_tree_host_impl.cc#newcode1613 cc/trees/layer_tree_host_impl.cc:1613: active_tree()->ResetRequiresHighResToDraw(); we reset ...
6 years, 3 months ago (2014-09-10 06:28:07 UTC) #22
danakj
This looks great, a few comments https://codereview.chromium.org/475633008/diff/160001/cc/test/fake_picture_layer_impl.h File cc/test/fake_picture_layer_impl.h (right): https://codereview.chromium.org/475633008/diff/160001/cc/test/fake_picture_layer_impl.h#newcode115 cc/test/fake_picture_layer_impl.h:115: size_t lost_output_surface_count() const ...
6 years, 3 months ago (2014-09-10 16:03:32 UTC) #23
sohanjg
please take a look, thanks. https://codereview.chromium.org/475633008/diff/160001/cc/test/fake_picture_layer_impl.h File cc/test/fake_picture_layer_impl.h (right): https://codereview.chromium.org/475633008/diff/160001/cc/test/fake_picture_layer_impl.h#newcode115 cc/test/fake_picture_layer_impl.h:115: size_t lost_output_surface_count() const { ...
6 years, 3 months ago (2014-09-11 06:07:57 UTC) #24
danakj
LGTM w/ 1 thing https://codereview.chromium.org/475633008/diff/180001/cc/trees/layer_tree_host_unittest_context.cc File cc/trees/layer_tree_host_unittest_context.cc (right): https://codereview.chromium.org/475633008/diff/180001/cc/trees/layer_tree_host_unittest_context.cc#newcode332 cc/trees/layer_tree_host_unittest_context.cc:332: client_.add_draw_rect(gfx::Rect(10, 10, 10, 10), paint); ...
6 years, 3 months ago (2014-09-13 13:13:48 UTC) #25
sohanjg
https://codereview.chromium.org/475633008/diff/180001/cc/trees/layer_tree_host_unittest_context.cc File cc/trees/layer_tree_host_unittest_context.cc (right): https://codereview.chromium.org/475633008/diff/180001/cc/trees/layer_tree_host_unittest_context.cc#newcode332 cc/trees/layer_tree_host_unittest_context.cc:332: client_.add_draw_rect(gfx::Rect(10, 10, 10, 10), paint); On 2014/09/13 13:13:47, danakj ...
6 years, 3 months ago (2014-09-15 05:14:31 UTC) #26
danakj
https://codereview.chromium.org/475633008/diff/180001/cc/trees/layer_tree_host_unittest_context.cc File cc/trees/layer_tree_host_unittest_context.cc (right): https://codereview.chromium.org/475633008/diff/180001/cc/trees/layer_tree_host_unittest_context.cc#newcode332 cc/trees/layer_tree_host_unittest_context.cc:332: client_.add_draw_rect(gfx::Rect(10, 10, 10, 10), paint); On 2014/09/15 05:14:31, sohanjg ...
6 years, 3 months ago (2014-09-15 16:34:37 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/475633008/220001
6 years, 3 months ago (2014-09-17 04:42:47 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_swarming/builds/15057)
6 years, 3 months ago (2014-09-17 06:09:38 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/475633008/220001
6 years, 3 months ago (2014-09-17 06:16:56 UTC) #33
commit-bot: I haz the power
Committed patchset #12 (id:220001) as 3dcfd5c81406e261de687b7f5ef05eadaad623d4
6 years, 3 months ago (2014-09-17 08:03:30 UTC) #34
commit-bot: I haz the power
Patchset 12 (id:??) landed as https://crrev.com/fa27ef28c604c3bd343f7d8298ac3f328a9a0037 Cr-Commit-Position: refs/heads/master@{#295241}
6 years, 3 months ago (2014-09-17 08:04:21 UTC) #35
Dirk Pranke
6 years, 3 months ago (2014-09-17 18:58:02 UTC) #36
Message was sent while issue was closed.
Hi,

This patch caused
LayerTreeHostContextTestLostContextAndEvictTextures.LoseBeforeEvict_MultiThread_DelegatingRenderer_ImplSidePaint
to crash flakily, so I've reverted it in
https://codereview.chromium.org/581643005/ .

sample crash:

https://build.chromium.org/p/chromium.mac/builders/Mac10.6%20Tests%20(1)/buil...

Sorry!

Powered by Google App Engine
This is Rietveld 408576698