| 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 virtual void ScheduleComposite() OVERRIDE; | 93 virtual void ScheduleComposite() OVERRIDE; |
| 94 virtual void ScheduleAnimation() OVERRIDE; | 94 virtual void ScheduleAnimation() OVERRIDE; |
| 95 virtual void DidPostSwapBuffers() OVERRIDE; | 95 virtual void DidPostSwapBuffers() OVERRIDE; |
| 96 virtual void DidAbortSwapBuffers() OVERRIDE; | 96 virtual void DidAbortSwapBuffers() OVERRIDE; |
| 97 | 97 |
| 98 // ImageTransportFactoryAndroidObserver implementation. | 98 // ImageTransportFactoryAndroidObserver implementation. |
| 99 virtual void OnLostResources() OVERRIDE; | 99 virtual void OnLostResources() OVERRIDE; |
| 100 | 100 |
| 101 // WindowAndroidCompositor implementation. | 101 // WindowAndroidCompositor implementation. |
| 102 virtual void AttachLayerForReadback(scoped_refptr<cc::Layer> layer) OVERRIDE; | 102 virtual void AttachLayerForReadback(scoped_refptr<cc::Layer> layer) OVERRIDE; |
| 103 virtual void RequestCopyOfOutputOnRootLayer( |
| 104 scoped_ptr<cc::CopyOutputRequest> request) OVERRIDE; |
| 103 virtual void OnVSync(base::TimeTicks frame_time, | 105 virtual void OnVSync(base::TimeTicks frame_time, |
| 104 base::TimeDelta vsync_period) OVERRIDE; | 106 base::TimeDelta vsync_period) OVERRIDE; |
| 105 | 107 |
| 106 void PostComposite(base::TimeDelta delay); | 108 void PostComposite(base::TimeDelta delay); |
| 107 enum CompositingTrigger { | 109 enum CompositingTrigger { |
| 108 COMPOSITE_IMMEDIATELY, | 110 COMPOSITE_IMMEDIATELY, |
| 109 COMPOSITE_ON_VSYNC | 111 COMPOSITE_ON_VSYNC |
| 110 }; | 112 }; |
| 111 void Composite(CompositingTrigger trigger); | 113 void Composite(CompositingTrigger trigger); |
| 112 cc::UIResourceId GenerateUIResourceFromUIResourceBitmap( | 114 cc::UIResourceId GenerateUIResourceFromUIResourceBitmap( |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 base::TimeDelta vsync_period_; | 158 base::TimeDelta vsync_period_; |
| 157 | 159 |
| 158 base::WeakPtrFactory<CompositorImpl> weak_factory_; | 160 base::WeakPtrFactory<CompositorImpl> weak_factory_; |
| 159 | 161 |
| 160 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); | 162 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); |
| 161 }; | 163 }; |
| 162 | 164 |
| 163 } // namespace content | 165 } // namespace content |
| 164 | 166 |
| 165 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ | 167 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ |
| OLD | NEW |