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

Unified Diff: components/mus/surfaces/direct_output_surface.h

Issue 2029323004: Get rid of virtual Display::CreateScheduler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@onscreendisplayclient
Patch Set: displaytest: unusedvar Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/test/pixel_test_output_surface.cc ('k') | components/mus/surfaces/direct_output_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 38ca52373285e98d231ec92a7d81860db9335d84..03e71108a4af510c8f5e295fbd26bc26850a423c 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
@@ -33,7 +37,7 @@ class DirectOutputSurface : public cc::OutputSurface,
const base::TimeDelta& 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_;
};
« no previous file with comments | « cc/test/pixel_test_output_surface.cc ('k') | components/mus/surfaces/direct_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698