| 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, | 78 float page_scale, |
| 79 float top_controls_delta) override {} | 79 float top_controls_delta) override {} |
| 80 void RequestNewOutputSurface() override; | 80 void RequestNewOutputSurface() override; |
| 81 void DidInitializeOutputSurface() override; | 81 void DidInitializeOutputSurface() override; |
| 82 void DidFailToInitializeOutputSurface() override; | 82 void DidFailToInitializeOutputSurface() override; |
| 83 void WillCommit() override {} | 83 void WillCommit() override {} |
| 84 void DidCommit() override; | 84 void DidCommit() override; |
| 85 void DidCommitAndDrawFrame() override {} | 85 void DidCommitAndDrawFrame() override {} |
| 86 void DidCompleteSwapBuffers() override; | 86 void DidCompleteSwapBuffers() override; |
| 87 void DidCompletePageScaleAnimation() override {} | 87 void DidCompletePageScaleAnimation() override {} |
| 88 void RecordFrameTimingEvents( |
| 89 scoped_ptr<cc::FrameTimingTracker::CompositeTimingSet> composite_events, |
| 90 scoped_ptr<cc::FrameTimingTracker::MainFrameTimingSet> main_frame_events) |
| 91 override {} |
| 88 | 92 |
| 89 // LayerTreeHostSingleThreadClient implementation. | 93 // LayerTreeHostSingleThreadClient implementation. |
| 90 void ScheduleComposite() override; | 94 void ScheduleComposite() override; |
| 91 void ScheduleAnimation() override; | 95 void ScheduleAnimation() override; |
| 92 void DidPostSwapBuffers() override; | 96 void DidPostSwapBuffers() override; |
| 93 void DidAbortSwapBuffers() override; | 97 void DidAbortSwapBuffers() override; |
| 94 | 98 |
| 95 // WindowAndroidCompositor implementation. | 99 // WindowAndroidCompositor implementation. |
| 96 void AttachLayerForReadback(scoped_refptr<cc::Layer> layer) override; | 100 void AttachLayerForReadback(scoped_refptr<cc::Layer> layer) override; |
| 97 void RequestCopyOfOutputOnRootLayer( | 101 void RequestCopyOfOutputOnRootLayer( |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 bool output_surface_request_pending_; | 205 bool output_surface_request_pending_; |
| 202 | 206 |
| 203 base::WeakPtrFactory<CompositorImpl> weak_factory_; | 207 base::WeakPtrFactory<CompositorImpl> weak_factory_; |
| 204 | 208 |
| 205 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); | 209 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); |
| 206 }; | 210 }; |
| 207 | 211 |
| 208 } // namespace content | 212 } // namespace content |
| 209 | 213 |
| 210 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ | 214 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ |
| OLD | NEW |