| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/containers/scoped_ptr_hash_map.h" | 10 #include "base/containers/scoped_ptr_hash_map.h" |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 virtual void Layout() OVERRIDE {} | 79 virtual void Layout() OVERRIDE {} |
| 80 virtual void ApplyScrollAndScale(const gfx::Vector2d& scroll_delta, | 80 virtual void ApplyScrollAndScale(const gfx::Vector2d& scroll_delta, |
| 81 float page_scale) OVERRIDE {} | 81 float page_scale) OVERRIDE {} |
| 82 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback) | 82 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback) |
| 83 OVERRIDE; | 83 OVERRIDE; |
| 84 virtual void DidInitializeOutputSurface(bool success) OVERRIDE {} | 84 virtual void DidInitializeOutputSurface(bool success) OVERRIDE {} |
| 85 virtual void WillCommit() OVERRIDE {} | 85 virtual void WillCommit() OVERRIDE {} |
| 86 virtual void DidCommit() OVERRIDE; | 86 virtual void DidCommit() OVERRIDE; |
| 87 virtual void DidCommitAndDrawFrame() OVERRIDE {} | 87 virtual void DidCommitAndDrawFrame() OVERRIDE {} |
| 88 virtual void DidCompleteSwapBuffers() OVERRIDE; | 88 virtual void DidCompleteSwapBuffers() OVERRIDE; |
| 89 virtual scoped_refptr<cc::ContextProvider> | |
| 90 OffscreenContextProvider() OVERRIDE; | |
| 91 | 89 |
| 92 // LayerTreeHostSingleThreadClient implementation. | 90 // LayerTreeHostSingleThreadClient implementation. |
| 93 virtual void ScheduleComposite() OVERRIDE; | 91 virtual void ScheduleComposite() OVERRIDE; |
| 94 virtual void ScheduleAnimation() OVERRIDE; | 92 virtual void ScheduleAnimation() OVERRIDE; |
| 95 virtual void DidPostSwapBuffers() OVERRIDE; | 93 virtual void DidPostSwapBuffers() OVERRIDE; |
| 96 virtual void DidAbortSwapBuffers() OVERRIDE; | 94 virtual void DidAbortSwapBuffers() OVERRIDE; |
| 97 | 95 |
| 98 // ImageTransportFactoryAndroidObserver implementation. | 96 // ImageTransportFactoryAndroidObserver implementation. |
| 99 virtual void OnLostResources() OVERRIDE; | 97 virtual void OnLostResources() OVERRIDE; |
| 100 | 98 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 111 | 109 |
| 112 gfx::Size size_; | 110 gfx::Size size_; |
| 113 bool has_transparent_background_; | 111 bool has_transparent_background_; |
| 114 float device_scale_factor_; | 112 float device_scale_factor_; |
| 115 | 113 |
| 116 ANativeWindow* window_; | 114 ANativeWindow* window_; |
| 117 int surface_id_; | 115 int surface_id_; |
| 118 | 116 |
| 119 CompositorClient* client_; | 117 CompositorClient* client_; |
| 120 | 118 |
| 121 scoped_refptr<cc::ContextProvider> null_offscreen_context_provider_; | |
| 122 | |
| 123 typedef base::ScopedPtrHashMap<cc::UIResourceId, cc::UIResourceClient> | 119 typedef base::ScopedPtrHashMap<cc::UIResourceId, cc::UIResourceClient> |
| 124 UIResourceMap; | 120 UIResourceMap; |
| 125 UIResourceMap ui_resource_map_; | 121 UIResourceMap ui_resource_map_; |
| 126 | 122 |
| 127 gfx::NativeWindow root_window_; | 123 gfx::NativeWindow root_window_; |
| 128 | 124 |
| 129 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); | 125 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); |
| 130 }; | 126 }; |
| 131 | 127 |
| 132 } // namespace content | 128 } // namespace content |
| 133 | 129 |
| 134 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ | 130 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ |
| OLD | NEW |