| 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/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 const gfx::Rect& sub_rect, | 70 const gfx::Rect& sub_rect, |
| 71 gfx::JavaBitmap& bitmap) OVERRIDE; | 71 gfx::JavaBitmap& bitmap) OVERRIDE; |
| 72 | 72 |
| 73 // LayerTreeHostClient implementation. | 73 // LayerTreeHostClient implementation. |
| 74 virtual void WillBeginFrame() OVERRIDE {} | 74 virtual void WillBeginFrame() OVERRIDE {} |
| 75 virtual void DidBeginFrame() OVERRIDE {} | 75 virtual void DidBeginFrame() OVERRIDE {} |
| 76 virtual void Animate(double frame_begin_time) OVERRIDE {} | 76 virtual void Animate(double frame_begin_time) OVERRIDE {} |
| 77 virtual void Layout() OVERRIDE {} | 77 virtual void Layout() OVERRIDE {} |
| 78 virtual void ApplyScrollAndScale(gfx::Vector2d scroll_delta, | 78 virtual void ApplyScrollAndScale(gfx::Vector2d scroll_delta, |
| 79 float page_scale) OVERRIDE {} | 79 float page_scale) OVERRIDE {} |
| 80 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface() OVERRIDE; | 80 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback) |
| 81 OVERRIDE; |
| 81 virtual void DidInitializeOutputSurface(bool success) OVERRIDE {} | 82 virtual void DidInitializeOutputSurface(bool success) OVERRIDE {} |
| 82 virtual void WillCommit() OVERRIDE {} | 83 virtual void WillCommit() OVERRIDE {} |
| 83 virtual void DidCommit() OVERRIDE {} | 84 virtual void DidCommit() OVERRIDE {} |
| 84 virtual void DidCommitAndDrawFrame() OVERRIDE {} | 85 virtual void DidCommitAndDrawFrame() OVERRIDE {} |
| 85 virtual void DidCompleteSwapBuffers() OVERRIDE; | 86 virtual void DidCompleteSwapBuffers() OVERRIDE; |
| 86 virtual void ScheduleComposite() OVERRIDE; | 87 virtual void ScheduleComposite() OVERRIDE; |
| 87 virtual scoped_refptr<cc::ContextProvider> | 88 virtual scoped_refptr<cc::ContextProvider> |
| 88 OffscreenContextProviderForMainThread() OVERRIDE; | 89 OffscreenContextProviderForMainThread() OVERRIDE; |
| 89 virtual scoped_refptr<cc::ContextProvider> | 90 virtual scoped_refptr<cc::ContextProvider> |
| 90 OffscreenContextProviderForCompositorThread() OVERRIDE; | 91 OffscreenContextProviderForCompositorThread() OVERRIDE; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 115 base::WeakPtrFactory<CompositorImpl> weak_factory_; | 116 base::WeakPtrFactory<CompositorImpl> weak_factory_; |
| 116 | 117 |
| 117 scoped_refptr<cc::ContextProvider> null_offscreen_context_provider_; | 118 scoped_refptr<cc::ContextProvider> null_offscreen_context_provider_; |
| 118 | 119 |
| 119 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); | 120 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); |
| 120 }; | 121 }; |
| 121 | 122 |
| 122 } // namespace content | 123 } // namespace content |
| 123 | 124 |
| 124 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ | 125 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ |
| OLD | NEW |