OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MOJO_EXAMPLES_COMPOSITOR_APP_GLES2_CLIENT_IMPL_H_ | 5 #ifndef MOJO_EXAMPLES_COMPOSITOR_APP_GLES2_CLIENT_IMPL_H_ |
6 #define MOJO_EXAMPLES_COMPOSITOR_APP_GLES2_CLIENT_IMPL_H_ | 6 #define MOJO_EXAMPLES_COMPOSITOR_APP_GLES2_CLIENT_IMPL_H_ |
7 | 7 |
8 #include "base/time/time.h" | 8 #include "base/time/time.h" |
9 #include "base/timer/timer.h" | 9 #include "base/timer/timer.h" |
10 #include "mojo/public/bindings/lib/remote_ptr.h" | 10 #include "mojo/public/bindings/lib/remote_ptr.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 virtual ~GLES2ClientImpl(); | 31 virtual ~GLES2ClientImpl(); |
32 | 32 |
33 gpu::gles2::GLES2Interface* Interface() const; | 33 gpu::gles2::GLES2Interface* Interface() const; |
34 gpu::ContextSupport* Support() const; | 34 gpu::ContextSupport* Support() const; |
35 | 35 |
36 private: | 36 private: |
37 virtual void DidCreateContext(uint64_t encoded, | 37 virtual void DidCreateContext(uint64_t encoded, |
38 uint32_t width, | 38 uint32_t width, |
39 uint32_t height) MOJO_OVERRIDE; | 39 uint32_t height) MOJO_OVERRIDE; |
40 virtual void ContextLost() MOJO_OVERRIDE; | 40 virtual void ContextLost() MOJO_OVERRIDE; |
| 41 virtual void DrawAnimationFrame() MOJO_OVERRIDE; |
41 | 42 |
42 base::Callback<void(gfx::Size viewport_size)> context_created_callback_; | 43 base::Callback<void(gfx::Size viewport_size)> context_created_callback_; |
43 gpu::gles2::GLES2Implementation* impl_; | 44 gpu::gles2::GLES2Implementation* impl_; |
44 | 45 |
45 RemotePtr<GLES2> service_; | 46 RemotePtr<GLES2> service_; |
46 | 47 |
47 MOJO_DISALLOW_COPY_AND_ASSIGN(GLES2ClientImpl); | 48 MOJO_DISALLOW_COPY_AND_ASSIGN(GLES2ClientImpl); |
48 }; | 49 }; |
49 | 50 |
50 } // namespace examples | 51 } // namespace examples |
51 } // namespace mojo | 52 } // namespace mojo |
52 | 53 |
53 #endif // MOJO_EXAMPLES_COMPOSITOR_APP_GLES2_CLIENT_IMPL_H_ | 54 #endif // MOJO_EXAMPLES_COMPOSITOR_APP_GLES2_CLIENT_IMPL_H_ |
OLD | NEW |