| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 virtual blink::WebGLId GenerateCompressedTexture( | 64 virtual blink::WebGLId GenerateCompressedTexture( |
| 65 gfx::Size& size, int data_size, void* data) OVERRIDE; | 65 gfx::Size& size, int data_size, void* data) OVERRIDE; |
| 66 virtual void DeleteTexture(blink::WebGLId texture_id) OVERRIDE; | 66 virtual void DeleteTexture(blink::WebGLId texture_id) OVERRIDE; |
| 67 virtual bool CopyTextureToBitmap(blink::WebGLId texture_id, | 67 virtual bool CopyTextureToBitmap(blink::WebGLId texture_id, |
| 68 gfx::JavaBitmap& bitmap) OVERRIDE; | 68 gfx::JavaBitmap& bitmap) OVERRIDE; |
| 69 virtual bool CopyTextureToBitmap(blink::WebGLId texture_id, | 69 virtual bool CopyTextureToBitmap(blink::WebGLId texture_id, |
| 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 WillBeginMainFrame() OVERRIDE {} | 74 virtual void WillBeginMainFrame(int frame_id) OVERRIDE {} |
| 75 virtual void DidBeginMainFrame() OVERRIDE {} | 75 virtual void DidBeginMainFrame() 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(bool fallback) | 80 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback) |
| 81 OVERRIDE; | 81 OVERRIDE; |
| 82 virtual void DidInitializeOutputSurface(bool success) OVERRIDE {} | 82 virtual void DidInitializeOutputSurface(bool success) OVERRIDE {} |
| 83 virtual void WillCommit() OVERRIDE {} | 83 virtual void WillCommit() OVERRIDE {} |
| 84 virtual void DidCommit() OVERRIDE {} | 84 virtual void DidCommit() OVERRIDE {} |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 typedef base::ScopedPtrHashMap<cc::UIResourceId, cc::ScopedUIResource> | 116 typedef base::ScopedPtrHashMap<cc::UIResourceId, cc::ScopedUIResource> |
| 117 UIResourceMap; | 117 UIResourceMap; |
| 118 UIResourceMap ui_resource_map_; | 118 UIResourceMap ui_resource_map_; |
| 119 | 119 |
| 120 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); | 120 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); |
| 121 }; | 121 }; |
| 122 | 122 |
| 123 } // namespace content | 123 } // namespace content |
| 124 | 124 |
| 125 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ | 125 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ |
| OLD | NEW |