Index: sky/compositor/display_delegate_ganesh.h |
diff --git a/sky/compositor/display_delegate_ganesh.h b/sky/compositor/display_delegate_ganesh.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1402bf8ace8c45b5ba325069f2cfb0180b1232c1 |
--- /dev/null |
+++ b/sky/compositor/display_delegate_ganesh.h |
@@ -0,0 +1,31 @@ |
+// 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_GANESH_H_ |
+#define SKY_COMPOSITOR_DISPLAY_DELEGATE_GANESH_H_ |
+ |
+#include "sky/compositor/display_delegate.h" |
+ |
+namespace sky { |
+ |
+class LayerClient; |
+ |
+class DisplayDelegateGanesh : public DisplayDelegate { |
esprehn
2014/12/13 00:24:42
final
|
+ public: |
+ DisplayDelegateGanesh(LayerClient* client) : client_(client) {} |
esprehn
2014/12/13 00:24:42
explicit
|
+ ~DisplayDelegateGanesh() override {} |
+ |
+ static DisplayDelegate* create(LayerClient* client); |
+ |
+ void GetPixelsForTesting(std::vector<unsigned char>* pixels) override; |
+ void Paint(mojo::GaneshSurface& surface, const gfx::Rect& size) override; |
+ |
+ private: |
+ LayerClient* client_; |
+ DISALLOW_COPY_AND_ASSIGN(DisplayDelegateGanesh); |
+}; |
+ |
+} // namespace sky |
+ |
+#endif // SKY_COMPOSITOR_DISPLAY_DELEGATE_GANESH_H_ |