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

Unified Diff: sky/compositor/rasterizer_ganesh.h

Issue 854303002: Sky should use an SkPicture when drawing (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: fixes Created 5 years, 11 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: sky/compositor/rasterizer_ganesh.h
diff --git a/sky/compositor/rasterizer_ganesh.h b/sky/compositor/rasterizer_ganesh.h
new file mode 100644
index 0000000000000000000000000000000000000000..6ee23f518a18faa17cd6217d47f4ea9aff05c5af
--- /dev/null
+++ b/sky/compositor/rasterizer_ganesh.h
@@ -0,0 +1,28 @@
+// Copyright 2015 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_RASTERIZER_GANESH_H_
+#define SKY_COMPOSITOR_DISPLAY_RASTERIZER_GANESH_H_
+
+#include "sky/compositor/rasterizer.h"
+
+namespace sky {
+class LayerHost;
+
+class RasterizerGanesh : public Rasterizer {
+ public:
+ explicit RasterizerGanesh(LayerHost* host);
+ ~RasterizerGanesh() override;
+
+ scoped_ptr<mojo::GLTexture> Rasterize(SkPicture* picture) override;
+
+ private:
+ LayerHost* host_;
+
+ DISALLOW_COPY_AND_ASSIGN(RasterizerGanesh);
+};
+
+} // namespace sky
+
+#endif // SKY_COMPOSITOR_DISPLAY_RASTERIZER_GANESH_H_

Powered by Google App Engine
This is Rietveld 408576698