#include "ui/compositor/test/fake_context_factory.h"
#include "base/command_line.h"
#include "build/build_config.h"
#include "cc/base/switches.h"
#include "cc/test/fake_layer_tree_frame_sink.h"
#include "cc/trees/layer_tree_frame_sink_client.h"
#include "components/viz/common/frame_sinks/begin_frame_source.h"
#include "components/viz/common/frame_sinks/delay_based_time_source.h"
#include "components/viz/common/quads/compositor_frame.h"
#include "ui/compositor/compositor_switches.h"
#include "ui/display/display_switches.h"
#include "ui/gfx/switches.h"
#if BUILDFLAG(IS_APPLE)
#include "ui/accelerated_widget_mac/ca_transaction_observer.h"
#endif
namespace ui {
FakeContextFactory::FakeContextFactory() { … }
FakeContextFactory::~FakeContextFactory() = default;
const viz::CompositorFrame& FakeContextFactory::GetLastCompositorFrame() const { … }
void FakeContextFactory::CreateLayerTreeFrameSink(
base::WeakPtr<ui::Compositor> compositor) { … }
scoped_refptr<viz::RasterContextProvider>
FakeContextFactory::SharedMainThreadRasterContextProvider() { … }
void FakeContextFactory::RemoveCompositor(ui::Compositor* compositor) { … }
gpu::GpuMemoryBufferManager* FakeContextFactory::GetGpuMemoryBufferManager() { … }
cc::TaskGraphRunner* FakeContextFactory::GetTaskGraphRunner() { … }
}