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

Unified Diff: sky/compositor/display_delegate.h

Issue 797063002: Make reftests work for sky. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: address review comments Created 6 years 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: sky/compositor/display_delegate.h
diff --git a/sky/compositor/display_delegate.h b/sky/compositor/display_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..800e4c7562563cfa84e1d92f68df574aba911334
--- /dev/null
+++ b/sky/compositor/display_delegate.h
@@ -0,0 +1,43 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef SKY_COMPOSITOR_DISPLAY_DELEGATE_H_
+#define SKY_COMPOSITOR_DISPLAY_DELEGATE_H_
+
+#include <vector>
+
+#include "mojo/skia/ganesh_surface.h"
+
+class SkCanvas;
+
+namespace gfx {
+class Rect;
+}
+
+namespace sky {
+
+class DisplayDelegate;
+class LayerClient;
+
+typedef DisplayDelegate* (*CreateDisplayDelegate)(LayerClient*);
+
+class DisplayDelegate {
+ public:
+ DisplayDelegate() {}
+ virtual ~DisplayDelegate() {}
+
+ static DisplayDelegate* create(LayerClient*);
+ static void setDisplayDelegateCreateFunction(CreateDisplayDelegate);
+
+ virtual void GetPixelsForTesting(std::vector<unsigned char>* pixels) = 0;
+ virtual void Paint(mojo::GaneshSurface& surface, const gfx::Rect& size) = 0;
+
+ DISALLOW_COPY_AND_ASSIGN(DisplayDelegate);
+};
+
+
+
+} // namespace sky
+
+#endif // SKY_COMPOSITOR_DISPLAY_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698