Commit 23f9bf8b authored by Sadrul Chowdhury's avatar Sadrul Chowdhury Committed by Commit Bot

cc: Document LayerTreeHostImpl::is_synchronous_single_threaded_

Document LayerTreeHostImpl::is_synchronous_single_threaded_, since it
is often a source of confusion.

Change-Id: I7753afe66348e9aad9ec7ac727396cad6ec486c3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1693093
Commit-Queue: Sadrul Chowdhury <sadrul@chromium.org>
Commit-Queue: Sunny Sachanandani <sunnyps@chromium.org>
Auto-Submit: Sadrul Chowdhury <sadrul@chromium.org>
Reviewed-by: default avatarSunny Sachanandani <sunnyps@chromium.org>
Cr-Commit-Position: refs/heads/master@{#675761}
parent dad9fd11
...@@ -950,6 +950,13 @@ class CC_EXPORT LayerTreeHostImpl : public InputHandler, ...@@ -950,6 +950,13 @@ class CC_EXPORT LayerTreeHostImpl : public InputHandler,
void AllocateLocalSurfaceId(); void AllocateLocalSurfaceId();
const LayerTreeSettings settings_; const LayerTreeSettings settings_;
// This is set to true only if:
// . The compositor is running single-threaded (i.e. there is no separate
// compositor/impl thread).
// . There is no scheduler (which means layer-update, composite, etc. steps
// happen explicitly via. synchronous calls to appropriate functions).
// This is usually turned on only in some tests (e.g. web-tests).
const bool is_synchronous_single_threaded_; const bool is_synchronous_single_threaded_;
const int default_color_space_id_ = gfx::ColorSpace::GetNextId(); const int default_color_space_id_ = gfx::ColorSpace::GetNextId();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment