| 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_COMPOSITOR_HOST_H_ | 5 #ifndef MOJO_EXAMPLES_COMPOSITOR_APP_COMPOSITOR_HOST_H_ |
| 6 #define MOJO_EXAMPLES_COMPOSITOR_APP_COMPOSITOR_HOST_H_ | 6 #define MOJO_EXAMPLES_COMPOSITOR_APP_COMPOSITOR_HOST_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/threading/thread.h" | 10 #include "base/threading/thread.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 virtual void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta, | 36 virtual void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta, |
| 37 float page_scale, | 37 float page_scale, |
| 38 float top_controls_delta) OVERRIDE; | 38 float top_controls_delta) OVERRIDE; |
| 39 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback) | 39 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback) |
| 40 OVERRIDE; | 40 OVERRIDE; |
| 41 virtual void DidInitializeOutputSurface() OVERRIDE; | 41 virtual void DidInitializeOutputSurface() OVERRIDE; |
| 42 virtual void WillCommit() OVERRIDE; | 42 virtual void WillCommit() OVERRIDE; |
| 43 virtual void DidCommit() OVERRIDE; | 43 virtual void DidCommit() OVERRIDE; |
| 44 virtual void DidCommitAndDrawFrame() OVERRIDE; | 44 virtual void DidCommitAndDrawFrame() OVERRIDE; |
| 45 virtual void DidCompleteSwapBuffers() OVERRIDE; | 45 virtual void DidCompleteSwapBuffers() OVERRIDE; |
| 46 virtual void DidLoseOutputSurface() OVERRIDE; |
| 46 | 47 |
| 47 private: | 48 private: |
| 48 void SetupScene(); | 49 void SetupScene(); |
| 49 | 50 |
| 50 ScopedMessagePipeHandle command_buffer_handle_; | 51 ScopedMessagePipeHandle command_buffer_handle_; |
| 51 scoped_ptr<cc::LayerTreeHost> tree_; | 52 scoped_ptr<cc::LayerTreeHost> tree_; |
| 52 scoped_refptr<cc::Layer> child_layer_; | 53 scoped_refptr<cc::Layer> child_layer_; |
| 53 base::Thread compositor_thread_; | 54 base::Thread compositor_thread_; |
| 54 }; | 55 }; |
| 55 | 56 |
| 56 } // namespace examples | 57 } // namespace examples |
| 57 } // namespace mojo | 58 } // namespace mojo |
| 58 | 59 |
| 59 #endif // MOJO_EXAMPLES_COMPOSITOR_APP_COMPOSITOR_HOST_H_ | 60 #endif // MOJO_EXAMPLES_COMPOSITOR_APP_COMPOSITOR_HOST_H_ |
| OLD | NEW |