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

Unified Diff: components/mus/ws/test_utils.h

Issue 2099893002: Mus: Fixes rendering of transparent containers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase on top of FrameGenerator refactor, also addressing feedback. 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
Index: components/mus/ws/test_utils.h
diff --git a/components/mus/ws/test_utils.h b/components/mus/ws/test_utils.h
index 21cce2bfe80f51921f122437bb142ba0fe1bc4ba..3e1fab8da9d620a62cee2c4c4e02c638a4a925e7 100644
--- a/components/mus/ws/test_utils.h
+++ b/components/mus/ws/test_utils.h
@@ -226,6 +226,26 @@ class TestPlatformDisplayFactory : public PlatformDisplayFactory {
// -----------------------------------------------------------------------------
+// A stub implementation of FrameGeneratorDelegate.
+class TestFrameGeneratorDelegate : public FrameGeneratorDelegate {
+ public:
+ explicit TestFrameGeneratorDelegate(std::unique_ptr<ServerWindow> root);
+ ~TestFrameGeneratorDelegate() override;
+
+ // FrameGeneratorDelegate:
+ ServerWindow* GetRootWindow() override;
+ void OnCompositorFrameDrawn() override {}
+ const ViewportMetrics& GetViewportMetrics() override;
+
+ private:
+ std::unique_ptr<ServerWindow> root_;
+ ViewportMetrics metrics_;
+
+ DISALLOW_COPY_AND_ASSIGN(TestFrameGeneratorDelegate);
+};
+
+// -----------------------------------------------------------------------------
+
class TestWindowManager : public mojom::WindowManager {
public:
TestWindowManager()

Powered by Google App Engine
This is Rietveld 408576698