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

Unified Diff: sky/compositor/layer.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
« no previous file with comments | « sky/compositor/display_delegate_ganesh.cc ('k') | sky/compositor/layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/compositor/layer.h
diff --git a/sky/compositor/layer.h b/sky/compositor/layer.h
index 94925278652b7e33146d2c5dae537b8f741d9438..0f478bb9d121fabf2a41b634ac07037bf1e9972a 100644
--- a/sky/compositor/layer.h
+++ b/sky/compositor/layer.h
@@ -11,15 +11,16 @@
#include "ui/gfx/geometry/rect.h"
namespace sky {
+
+class DisplayDelegate;
class LayerHost;
class Layer : public base::RefCounted<Layer> {
public:
explicit Layer(LayerClient* client);
- void ClearClient();
-
void SetSize(const gfx::Size& size);
+ void GetPixelsForTesting(std::vector<unsigned char>* pixels);
void Display();
scoped_ptr<mojo::GLTexture> GetTexture();
@@ -35,8 +36,8 @@ class Layer : public base::RefCounted<Layer> {
LayerClient* client_;
LayerHost* host_;
gfx::Size size_;
-
scoped_ptr<mojo::GLTexture> texture_;
+ scoped_ptr<DisplayDelegate> delegate_;
DISALLOW_COPY_AND_ASSIGN(Layer);
};
« no previous file with comments | « sky/compositor/display_delegate_ganesh.cc ('k') | sky/compositor/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698