| Index: sky/compositor/layer_host.h
|
| diff --git a/sky/compositor/layer_host.h b/sky/compositor/layer_host.h
|
| index 197ff9a9e8b0c3b0fc9b9ec78e83414af5d09153..17b8ae58d2ef287657b9969c725365c434e5f79b 100644
|
| --- a/sky/compositor/layer_host.h
|
| +++ b/sky/compositor/layer_host.h
|
| @@ -41,6 +41,13 @@ class LayerHost : public SurfaceHolder::Client, public Scheduler::Client {
|
| void SetRootLayer(scoped_refptr<Layer> layer);
|
|
|
| private:
|
| + enum State {
|
| + kIdle,
|
| + kWaitingForBeginFrame,
|
| + kProducingFrame,
|
| + kWaitingForSurfaceToUploadFrame,
|
| + };
|
| +
|
| // SurfaceHolder::Client
|
| void OnSurfaceIdAvailable(mojo::SurfaceIdPtr surface_id) override;
|
| void ReturnResources(
|
| @@ -53,6 +60,7 @@ class LayerHost : public SurfaceHolder::Client, public Scheduler::Client {
|
| void Upload(Layer* layer);
|
|
|
| LayerHostClient* client_;
|
| + State state_;
|
| SurfaceHolder surface_holder_;
|
| base::WeakPtr<mojo::GLContext> gl_context_;
|
| mojo::GaneshContext ganesh_context_;
|
|
|