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

Issue 733233003: Revert of cc: Toggle LCD text at raster time instead of record time. (Closed)

Created:
6 years, 1 month ago by Jeffrey Yasskin
Modified:
6 years, 1 month ago
CC:
cc-bugs_chromium.org, chromium-reviews, jbroman, pdr., piman
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Revert of cc: Toggle LCD text at raster time instead of record time. (patchset #21 id:460001 of https://codereview.chromium.org/684543006/) Reason for revert: Broke several MSan bots: http://build.chromium.org/p/chromium.memory.fyi/builders/Linux%20MSan%20Browser%20%281%29/builds/2669, http://build.chromium.org/p/chromium.memory.fyi/builders/Linux%20MSan%20Browser%20%282%29/builds/2648, and http://build.chromium.org/p/chromium.memory.fyi/builders/Linux%20MSan%20Browser%20%283%29/builds/2677 show traces like: ==9== WARNING: MemorySanitizer: use-of-uninitialized-value #0 0x7ffe6939a3ce in cc::PicturePile::UpdateAndExpandInvalidation(cc::ContentLayerClient*, cc::Region*, unsigned int, bool, bool, bool, gfx::Size const&, gfx::Rect const&, int, cc::Picture::RecordingMode) cc/resources/picture_pile.cc:215:7 #1 0x7ffe692dc068 in cc::PictureLayer::Update(cc::ResourceUpdateQueue*, cc::OcclusionTracker<cc::Layer> const*) cc/layers/picture_layer.cc:133:14 #2 0x7ffe69424ea5 in cc::LayerTreeHost::PaintLayerContents(cc::RenderSurfaceLayerList const&, cc::ResourceUpdateQueue*, bool*, bool*) cc/trees/layer_tree_host.cc:1049:29 #3 0x7ffe6942343d in cc::LayerTreeHost::UpdateLayers(cc::Layer*, cc::ResourceUpdateQueue*) cc/trees/layer_tree_host.cc:886:3 #4 0x7ffe6942260c in cc::LayerTreeHost::UpdateLayers(cc::ResourceUpdateQueue*) cc/trees/layer_tree_host.cc:758:17 #5 0x7ffe694aa463 in cc::ThreadProxy::BeginMainFrame(scoped_ptr<cc::ThreadProxy::BeginMainFrameAndCommitState, base::DefaultDeleter<cc::ThreadProxy::BeginMainFrameAndCommitState> >) cc/trees/thread_proxy.cc:779:18 #6 0x7ffe694b6cc9 in Run base/bind_internal.h:190:12 #7 0x7ffe694b6cc9 in base::internal::InvokeHelper<true, void, base::internal::RunnableAdapter<void (cc::ThreadProxy::*)(scoped_ptr<cc::ThreadProxy::BeginMainFrameAndCommitState, base::DefaultDeleter<cc::ThreadProxy::BeginMainFrameAndCommitState> >)>, void (base::WeakPtr<cc::ThreadProxy> const&, scoped_ptr<cc::ThreadProxy::BeginMainFrameAndCommitState, base::DefaultDeleter<cc::ThreadProxy::BeginMainFrameAndCommitState> )>::MakeItSo(base::internal::RunnableAdapter<void (cc::ThreadProxy::*)(scoped_ptr<cc::ThreadProxy::BeginMainFrameAndCommitState, base::DefaultDeleter<cc::ThreadProxy::BeginMainFrameAndCommitState> >)>, base::WeakPtr<cc::ThreadProxy> const&, scoped_ptr<cc::ThreadProxy::BeginMainFrameAndCommitState, base::DefaultDeleter<cc::ThreadProxy::BeginMainFrameAndCommitState> >) base/bind_internal.h:909:0 #8 0x7ffe694b6a55 in base::internal::Invoker<2, base::internal::BindState<base::internal::RunnableAdapter<void (cc::ThreadProxy::*)(scoped_ptr<cc::ThreadProxy::BeginMainFrameAndCommitState, base::DefaultDeleter<cc::ThreadProxy::BeginMainFrameAndCommitState> >)>, void (cc::ThreadProxy*, scoped_ptr<cc::ThreadProxy::BeginMainFrameAndCommitState, base::DefaultDeleter<cc::ThreadProxy::BeginMainFrameAndCommitState> >), void (base::WeakPtr<cc::ThreadProxy>, base::internal::PassedWrapper<scoped_ptr<cc::ThreadProxy::BeginMainFrameAndCommitState, base::DefaultDeleter<cc::ThreadProxy::BeginMainFrameAndCommitState> > >)>, void (cc::ThreadProxy*, scoped_ptr<cc::ThreadProxy::BeginMainFrameAndCommitState, base::DefaultDeleter<cc::ThreadProxy::BeginMainFrameAndCommitState> )>::Run(base::internal::BindStateBase*) base/bind_internal.h:1248:12 #9 0x7ffe5eb6ec33 in Run base/callback.h:401:12 #10 0x7ffe5eb6ec33 in base::debug::TaskAnnotator::RunTask(char const*, char const*, base::PendingTask const&) base/debug/task_annotator.cc:63:0 #11 0x7ffe5eaa968e in base::MessageLoop::RunTask(base::PendingTask const&) base/message_loop/message_loop.cc:448:3 #12 0x7ffe5eaaa4ea in DeferOrRunPendingTask base/message_loop/message_loop.cc:458:5 #13 0x7ffe5eaaa4ea in base::MessageLoop::DoWork() base/message_loop/message_loop.cc:567:0 #14 0x7ffe5eab1132 in base::MessagePumpDefault::Run(base::MessagePump::Delegate*) base/message_loop/message_pump_default.cc:32:21 #15 0x7ffe5eadcc3f in base::RunLoop::Run() base/run_loop.cc:55:3 #16 0x7ffe5eaa7d29 in base::MessageLoop::Run() base/message_loop/message_loop.cc:310:3 #17 0x7ffe6acdf3c8 in content::RendererMain(content::MainFunctionParams const&) content/renderer/renderer_main.cc:235:7 #18 0x7ffe6a6f4b00 in content::RunZygote(content::MainFunctionParams const&, content::ContentMainDelegate*) content/app/content_main_runner.cc:347:14 #19 0x7ffe6a6f5e8a in content::RunNamedProcessTypeMain(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, content::MainFunctionParams const&, content::ContentMainDelegate*) content/app/content_main_runner.cc:431:12 #20 0x7ffe6a6f7307 in content::ContentMainRunnerImpl::Run() content/app/content_main_runner.cc:789:12 #21 0x7ffe6a6f3d35 in content::ContentMain(content::ContentMainParams const&) content/app/content_main.cc:19:15 #22 0x7ffe6883fc4c in content::LaunchTests(content::TestLauncherDelegate*, int, int, char**) content/public/test/test_launcher.cc:474:12 #23 0x7ffe5e9addea in LaunchChromeTests(int, ChromeTestSuiteRunner*, int, char**) chrome/test/base/chrome_test_launcher.cc:125:10 #24 0x7ffe5d9b8870 in main chrome/test/base/browser_tests_main.cc:21:10 #25 0x7ffe5180d76c in __libc_start_main /build/buildd/eglibc-2.15/csu/libc-start.c:226:0 #26 0x7ffe5bd34c28 in _start ??:0:0 SUMMARY: MemorySanitizer: use-of-uninitialized-value ??:0 ?? See http://www.chromium.org/developers/testing/memorysanitizer to test locally under msan. Original issue's description: > cc: Toggle LCD text at raster time instead of record time. > > Always tell blink that it can use LCD text (in future this can stop > being passed at all). And at raster time: > > - If LCD text is allowed initialize SkSurfaceProps with the LegacyHost > parameter which will cause skia to pick an LCD text format matching > current behaviour. > - If LCD is not allowed initialize SkSurfaceProps with an "unknown > pixelformat" causing LCD text to not be used. > > This also removes the need for SK_SUPPORT_LEGACY_TEXTRENDERMODE from > resource_provider.cc. > > R=enne,reveman > BUG=430617 > > Committed: https://crrev.com/ad672f645e82ca677978b097a170c908c614d184 > Cr-Commit-Position: refs/heads/master@{#304486} TBR=enne@chromium.org,reed@google.com,reveman@chromium.org,sky@chromium.org,vmpstr@chromium.org,danakj@chromium.org NOTREECHECKS=true NOTRY=true BUG=430617 Committed: https://crrev.com/777195d442721886dba367a28ca74e45cdc09edc Cr-Commit-Position: refs/heads/master@{#304538}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+260 lines, -290 lines) Patch
M cc/blink/web_content_layer_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/blink/web_content_layer_impl.cc View 2 chunks +20 lines, -5 lines 0 comments Download
M cc/layers/content_layer.h View 1 chunk +3 lines, -0 lines 0 comments Download
M cc/layers/content_layer.cc View 3 chunks +13 lines, -1 line 0 comments Download
M cc/layers/content_layer_client.h View 1 chunk +4 lines, -0 lines 0 comments Download
M cc/layers/picture_image_layer.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/layers/picture_layer.h View 2 chunks +2 lines, -2 lines 0 comments Download
M cc/layers/picture_layer.cc View 4 chunks +17 lines, -14 lines 0 comments Download
M cc/layers/picture_layer_impl_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M cc/layers/picture_layer_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M cc/resources/gpu_raster_worker_pool.cc View 1 chunk +1 line, -2 lines 0 comments Download
M cc/resources/picture_pile.h View 2 chunks +0 lines, -2 lines 0 comments Download
M cc/resources/picture_pile.cc View 5 chunks +12 lines, -23 lines 0 comments Download
M cc/resources/picture_pile_impl.h View 2 chunks +0 lines, -2 lines 0 comments Download
M cc/resources/picture_pile_impl.cc View 3 chunks +0 lines, -6 lines 0 comments Download
M cc/resources/picture_pile_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/resources/raster_source.h View 1 chunk +0 lines, -3 lines 0 comments Download
M cc/resources/raster_worker_pool.cc View 1 chunk +10 lines, -8 lines 0 comments Download
M cc/resources/recording_source.h View 1 chunk +0 lines, -1 line 0 comments Download
M cc/resources/resource_provider.h View 1 chunk +3 lines, -7 lines 0 comments Download
M cc/resources/resource_provider.cc View 2 chunks +10 lines, -29 lines 0 comments Download
M cc/test/fake_content_layer_client.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/test/layer_tree_host_common_test.h View 2 chunks +13 lines, -10 lines 0 comments Download
M cc/test/layer_tree_host_common_test.cc View 4 chunks +2 lines, -6 lines 0 comments Download
M cc/test/solid_color_content_layer_client.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_host.cc View 1 chunk +10 lines, -5 lines 0 comments Download
M cc/trees/layer_tree_host_common.h View 5 chunks +0 lines, -5 lines 0 comments Download
M cc/trees/layer_tree_host_common.cc View 3 chunks +7 lines, -12 lines 0 comments Download
M cc/trees/layer_tree_host_common_perftest.cc View 2 chunks +14 lines, -9 lines 0 comments Download
M cc/trees/layer_tree_host_common_unittest.cc View 4 chunks +54 lines, -62 lines 0 comments Download
M cc/trees/layer_tree_host_pixeltest_masks.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_pixeltest_on_demand_raster.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 4 chunks +41 lines, -60 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 chunk +10 lines, -6 lines 0 comments Download
M cc/trees/layer_tree_settings.h View 1 chunk +0 lines, -1 line 0 comments Download
M cc/trees/layer_tree_settings.cc View 1 chunk +0 lines, -1 line 0 comments Download
M ui/compositor/compositor.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M ui/compositor/layer.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
Jeffrey Yasskin
Created Revert of cc: Toggle LCD text at raster time instead of record time.
6 years, 1 month ago (2014-11-18 01:43:36 UTC) #1
jamesr
Are you sure this didn't just change the signature of an already suppressed error? I ...
6 years, 1 month ago (2014-11-18 01:44:48 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/733233003/1
6 years, 1 month ago (2014-11-18 01:44:48 UTC) #4
commit-bot: I haz the power
Committed patchset #1 (id:1)
6 years, 1 month ago (2014-11-18 01:46:48 UTC) #6
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/777195d442721886dba367a28ca74e45cdc09edc Cr-Commit-Position: refs/heads/master@{#304538}
6 years, 1 month ago (2014-11-18 01:47:24 UTC) #8
Jeffrey Yasskin
On 2014/11/18 01:44:48, jamesr wrote: > Are you sure this didn't just change the signature ...
6 years, 1 month ago (2014-11-18 01:50:25 UTC) #9
danakj
6 years, 1 month ago (2014-11-18 15:56:22 UTC) #10
Message was sent while issue was closed.
I forgot to initialize can_use_lcd_text_ in PicturePile. Woops.

On Mon, Nov 17, 2014 at 8:50 PM, <jyasskin@chromium.org> wrote:

> On 2014/11/18 01:44:48, jamesr wrote:
>
>> Are you sure this didn't just change the signature of an already
>> suppressed
>> error?  I can't find the suppression file.
>>
>
> Yeah, the suppression file is
> https://code.google.com/p/chromium/codesearch/#chromium/
> src/tools/msan/blacklist.txt,
> which doesn't match the traces.
>
> I do wish `Revert Patchset` would let me send reverts through the CQ. This
> was
> in the tree too long for me to be really happy with having NOTRY'ed it. :-/
>
> https://codereview.chromium.org/733233003/
>

To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698