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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 virtual WebKit::WebGLId GenerateCompressedTexture( | 61 virtual WebKit::WebGLId GenerateCompressedTexture( |
62 gfx::Size& size, int data_size, void* data) OVERRIDE; | 62 gfx::Size& size, int data_size, void* data) OVERRIDE; |
63 virtual void DeleteTexture(WebKit::WebGLId texture_id) OVERRIDE; | 63 virtual void DeleteTexture(WebKit::WebGLId texture_id) OVERRIDE; |
64 virtual bool CopyTextureToBitmap(WebKit::WebGLId texture_id, | 64 virtual bool CopyTextureToBitmap(WebKit::WebGLId texture_id, |
65 gfx::JavaBitmap& bitmap) OVERRIDE; | 65 gfx::JavaBitmap& bitmap) OVERRIDE; |
66 virtual bool CopyTextureToBitmap(WebKit::WebGLId texture_id, | 66 virtual bool CopyTextureToBitmap(WebKit::WebGLId texture_id, |
67 const gfx::Rect& sub_rect, | 67 const gfx::Rect& sub_rect, |
68 gfx::JavaBitmap& bitmap) OVERRIDE; | 68 gfx::JavaBitmap& bitmap) OVERRIDE; |
69 | 69 |
70 // LayerTreeHostClient implementation. | 70 // LayerTreeHostClient implementation. |
71 virtual void WillBeginFrame() OVERRIDE {} | 71 virtual void WillBeginMainFrame() OVERRIDE {} |
72 virtual void DidBeginFrame() OVERRIDE {} | 72 virtual void DidBeginMainFrame() OVERRIDE {} |
73 virtual void Animate(double frame_begin_time) OVERRIDE {} | 73 virtual void Animate(double frame_begin_time) OVERRIDE {} |
74 virtual void Layout() OVERRIDE {} | 74 virtual void Layout() OVERRIDE {} |
75 virtual void ApplyScrollAndScale(gfx::Vector2d scroll_delta, | 75 virtual void ApplyScrollAndScale(gfx::Vector2d scroll_delta, |
76 float page_scale) OVERRIDE {} | 76 float page_scale) OVERRIDE {} |
77 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface() OVERRIDE; | 77 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface() OVERRIDE; |
78 virtual scoped_ptr<cc::InputHandlerClient> CreateInputHandlerClient() | 78 virtual scoped_ptr<cc::InputHandlerClient> CreateInputHandlerClient() |
79 OVERRIDE; | 79 OVERRIDE; |
80 virtual void DidInitializeOutputSurface(bool success) OVERRIDE {} | 80 virtual void DidInitializeOutputSurface(bool success) OVERRIDE {} |
81 virtual void WillCommit() OVERRIDE {} | 81 virtual void WillCommit() OVERRIDE {} |
82 virtual void DidCommit() OVERRIDE {} | 82 virtual void DidCommit() OVERRIDE {} |
(...skipping 28 matching lines...) Expand all Loading... |
111 base::WeakPtrFactory<CompositorImpl> weak_factory_; | 111 base::WeakPtrFactory<CompositorImpl> weak_factory_; |
112 | 112 |
113 scoped_refptr<cc::ContextProvider> null_offscreen_context_provider_; | 113 scoped_refptr<cc::ContextProvider> null_offscreen_context_provider_; |
114 | 114 |
115 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); | 115 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); |
116 }; | 116 }; |
117 | 117 |
118 } // namespace content | 118 } // namespace content |
119 | 119 |
120 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ | 120 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ |
OLD | NEW |