#include "cc/test/test_layer_tree_host_base.h"
#include <utility>
#include "base/memory/ptr_util.h"
#include "base/task/single_thread_task_runner.h"
#include "cc/test/fake_layer_tree_frame_sink.h"
#include "cc/test/fake_raster_source.h"
#include "cc/test/layer_test_common.h"
#include "cc/trees/layer_tree_impl.h"
namespace cc {
TestLayerTreeHostBase::TestLayerTreeHostBase()
: … { … }
TestLayerTreeHostBase::~TestLayerTreeHostBase() = default;
void TestLayerTreeHostBase::SetUp() { … }
void TestLayerTreeHostBase::TearDown() { … }
void TestLayerTreeHostBase::ClearLayersAndHost() { … }
LayerTreeSettings TestLayerTreeHostBase::CreateSettings() { … }
std::unique_ptr<LayerTreeFrameSink>
TestLayerTreeHostBase::CreateLayerTreeFrameSink() { … }
std::unique_ptr<FakeLayerTreeHostImpl> TestLayerTreeHostBase::CreateHostImpl(
const LayerTreeSettings& settings,
TaskRunnerProvider* task_runner_provider,
TaskGraphRunner* task_graph_runner) { … }
std::unique_ptr<TaskGraphRunner>
TestLayerTreeHostBase::CreateTaskGraphRunner() { … }
void TestLayerTreeHostBase::InitializeFrameSink() { … }
void TestLayerTreeHostBase::ResetLayerTreeFrameSink(
std::unique_ptr<LayerTreeFrameSink> layer_tree_frame_sink) { … }
std::unique_ptr<FakeLayerTreeHostImpl> TestLayerTreeHostBase::TakeHostImpl() { … }
void TestLayerTreeHostBase::SetupDefaultTrees(const gfx::Size& layer_bounds) { … }
void TestLayerTreeHostBase::SetupTrees(
scoped_refptr<RasterSource> pending_raster_source,
scoped_refptr<RasterSource> active_raster_source) { … }
void TestLayerTreeHostBase::SetupSyncTree(
scoped_refptr<RasterSource> raster_source,
const gfx::Size& tile_size,
const Region& invalidation) { … }
void TestLayerTreeHostBase::ActivateTree() { … }
void TestLayerTreeHostBase::PerformImplSideInvalidation() { … }
void TestLayerTreeHostBase::SetInitialTreePriority() { … }
void TestLayerTreeHostBase::ResetTrees() { … }
}