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

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

Issue 2099893002: Mus: Fixes rendering of transparent containers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/platform_display.h
diff --git a/components/mus/ws/platform_display.h b/components/mus/ws/platform_display.h
index 9b19220f23469c7adea1c198ef0fc0ade5fa6b9f..a7f2600c52cfdecad4cccc3af7b57458aa62bd15 100644
--- a/components/mus/ws/platform_display.h
+++ b/components/mus/ws/platform_display.h
@@ -53,6 +53,10 @@ class DisplayCompositor;
namespace ws {
+namespace test {
+class PlatformDisplayTest;
+}
+
class EventDispatcher;
class PlatformDisplayFactory;
class ServerWindow;
@@ -137,7 +141,13 @@ class DefaultPlatformDisplay : public PlatformDisplay,
std::unique_ptr<cc::CopyOutputRequest> output_request) override;
int64_t GetDisplayId() const override;
+ void set_delegate_for_testing(PlatformDisplayDelegate* delegate) {
+ delegate_ = delegate;
+ }
+
private:
+ friend class mus::ws::test::PlatformDisplayTest;
sky 2016/06/27 15:17:08 If you're going to friend this, then don't bother
mfomitchev 2016/06/30 22:06:03 Done.
+
void WantToDraw();
// This method initiates a top level redraw of the display.

Powered by Google App Engine
This is Rietveld 408576698