| Index: mojo/services/gles2/gles2_impl.cc
|
| diff --git a/mojo/services/gles2/gles2_impl.cc b/mojo/services/gles2/gles2_impl.cc
|
| index b80d3d7c00fb7c399fd0ae01e6b947c8351c6fd4..6aac1d3965db4e90f760bd4e009e2cebe34d5476 100644
|
| --- a/mojo/services/gles2/gles2_impl.cc
|
| +++ b/mojo/services/gles2/gles2_impl.cc
|
| @@ -19,6 +19,15 @@ GLES2Impl::GLES2Impl(ScopedMessagePipeHandle client)
|
| GLES2Impl::~GLES2Impl() {
|
| }
|
|
|
| +void GLES2Impl::RequestAnimationFrames() {
|
| + timer_.Start(FROM_HERE, base::TimeDelta::FromMilliseconds(16),
|
| + this, &GLES2Impl::DrawAnimationFrame);
|
| +}
|
| +
|
| +void GLES2Impl::CancelAnimationFrames() {
|
| + timer_.Stop();
|
| +}
|
| +
|
| void GLES2Impl::Destroy() {
|
| gl_context_.reset();
|
| }
|
| @@ -41,5 +50,9 @@ void GLES2Impl::OnGLContextLost() {
|
| client_->ContextLost();
|
| }
|
|
|
| +void GLES2Impl::DrawAnimationFrame() {
|
| + client_->DrawAnimationFrame();
|
| +}
|
| +
|
| } // namespace services
|
| } // namespace mojo
|
|
|