| 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/cancelable_callback.h" | 9 #include "base/cancelable_callback.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 float page_scale) OVERRIDE {} | 78 float page_scale) OVERRIDE {} |
| 79 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback) | 79 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback) |
| 80 OVERRIDE; | 80 OVERRIDE; |
| 81 virtual void DidInitializeOutputSurface() OVERRIDE {} | 81 virtual void DidInitializeOutputSurface() OVERRIDE {} |
| 82 virtual void WillCommit() OVERRIDE {} | 82 virtual void WillCommit() OVERRIDE {} |
| 83 virtual void DidCommit() OVERRIDE; | 83 virtual void DidCommit() OVERRIDE; |
| 84 virtual void DidCommitAndDrawFrame() OVERRIDE {} | 84 virtual void DidCommitAndDrawFrame() OVERRIDE {} |
| 85 virtual void DidCompleteSwapBuffers() OVERRIDE; | 85 virtual void DidCompleteSwapBuffers() OVERRIDE; |
| 86 | 86 |
| 87 // LayerTreeHostSingleThreadClient implementation. | 87 // LayerTreeHostSingleThreadClient implementation. |
| 88 virtual void ScheduleComposite() OVERRIDE; | |
| 89 virtual void ScheduleAnimation() OVERRIDE; | |
| 90 virtual void DidPostSwapBuffers() OVERRIDE; | 88 virtual void DidPostSwapBuffers() OVERRIDE; |
| 91 virtual void DidAbortSwapBuffers() OVERRIDE; | 89 virtual void DidAbortSwapBuffers() OVERRIDE; |
| 92 | 90 |
| 93 // ImageTransportFactoryAndroidObserver implementation. | 91 // ImageTransportFactoryAndroidObserver implementation. |
| 94 virtual void OnLostResources() OVERRIDE; | 92 virtual void OnLostResources() OVERRIDE; |
| 95 | 93 |
| 96 // WindowAndroidCompositor implementation. | 94 // WindowAndroidCompositor implementation. |
| 97 virtual void AttachLayerForReadback(scoped_refptr<cc::Layer> layer) OVERRIDE; | 95 virtual void AttachLayerForReadback(scoped_refptr<cc::Layer> layer) OVERRIDE; |
| 98 virtual void RequestCopyOfOutputOnRootLayer( | 96 virtual void RequestCopyOfOutputOnRootLayer( |
| 99 scoped_ptr<cc::CopyOutputRequest> request) OVERRIDE; | 97 scoped_ptr<cc::CopyOutputRequest> request) OVERRIDE; |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 base::TimeTicks last_vsync_; | 178 base::TimeTicks last_vsync_; |
| 181 | 179 |
| 182 base::WeakPtrFactory<CompositorImpl> weak_factory_; | 180 base::WeakPtrFactory<CompositorImpl> weak_factory_; |
| 183 | 181 |
| 184 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); | 182 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); |
| 185 }; | 183 }; |
| 186 | 184 |
| 187 } // namespace content | 185 } // namespace content |
| 188 | 186 |
| 189 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ | 187 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ |
| OLD | NEW |