| Index: components/mus/surfaces/direct_output_surface.h
|
| diff --git a/components/mus/surfaces/direct_output_surface.h b/components/mus/surfaces/direct_output_surface.h
|
| index b4caad34f0733d6c655d7535981f1a7ab19194bb..365f86d4dff9b6d9cf7d3e9afeb51302a90da859 100644
|
| --- a/components/mus/surfaces/direct_output_surface.h
|
| +++ b/components/mus/surfaces/direct_output_surface.h
|
| @@ -8,10 +8,14 @@
|
| #include <memory>
|
|
|
| #include "cc/output/output_surface.h"
|
| -#include "cc/scheduler/begin_frame_source.h"
|
| #include "components/mus/surfaces/surfaces_context_provider.h"
|
| #include "components/mus/surfaces/surfaces_context_provider_delegate.h"
|
|
|
| +namespace cc {
|
| +class CompositorFrame;
|
| +class SyntheticBeginFrameSource;
|
| +}
|
| +
|
| namespace mus {
|
|
|
| // An OutputSurface implementation that directly draws and
|
| @@ -21,7 +25,7 @@ class DirectOutputSurface : public cc::OutputSurface,
|
| public:
|
| explicit DirectOutputSurface(
|
| scoped_refptr<SurfacesContextProvider> context_provider,
|
| - base::SingleThreadTaskRunner* task_runner);
|
| + cc::SyntheticBeginFrameSource* synthetic_begin_frame_source);
|
| ~DirectOutputSurface() override;
|
|
|
| // cc::OutputSurface implementation
|
| @@ -32,7 +36,7 @@ class DirectOutputSurface : public cc::OutputSurface,
|
| void OnVSyncParametersUpdated(int64_t timebase, int64_t interval) override;
|
|
|
| private:
|
| - std::unique_ptr<cc::SyntheticBeginFrameSource> synthetic_begin_frame_source_;
|
| + cc::SyntheticBeginFrameSource* const synthetic_begin_frame_source_;
|
| base::WeakPtrFactory<DirectOutputSurface> weak_ptr_factory_;
|
| };
|
|
|
|
|