| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 virtual void SetVisible(bool visible) OVERRIDE; | 49 virtual void SetVisible(bool visible) OVERRIDE; |
| 50 virtual void SetWindowBounds(const gfx::Size& size) OVERRIDE; | 50 virtual void SetWindowBounds(const gfx::Size& size) OVERRIDE; |
| 51 virtual void SetHasTransparentBackground(bool flag) OVERRIDE; | 51 virtual void SetHasTransparentBackground(bool flag) OVERRIDE; |
| 52 virtual bool CompositeAndReadback( | 52 virtual bool CompositeAndReadback( |
| 53 void *pixels, const gfx::Rect& rect) OVERRIDE; | 53 void *pixels, const gfx::Rect& rect) OVERRIDE; |
| 54 virtual void Composite() OVERRIDE; | 54 virtual void Composite() OVERRIDE; |
| 55 virtual WebKit::WebGLId GenerateTexture(gfx::JavaBitmap& bitmap) OVERRIDE; | 55 virtual WebKit::WebGLId GenerateTexture(gfx::JavaBitmap& bitmap) OVERRIDE; |
| 56 virtual WebKit::WebGLId GenerateCompressedTexture( | 56 virtual WebKit::WebGLId GenerateCompressedTexture( |
| 57 gfx::Size& size, int data_size, void* data) OVERRIDE; | 57 gfx::Size& size, int data_size, void* data) OVERRIDE; |
| 58 virtual void DeleteTexture(WebKit::WebGLId texture_id) OVERRIDE; | 58 virtual void DeleteTexture(WebKit::WebGLId texture_id) OVERRIDE; |
| 59 virtual void CopyTextureToBitmap(WebKit::WebGLId texture_id, | 59 virtual bool CopyTextureToBitmap(WebKit::WebGLId texture_id, |
| 60 gfx::JavaBitmap& bitmap) OVERRIDE; |
| 61 virtual bool CopyTextureToBitmap(WebKit::WebGLId texture_id, |
| 62 const gfx::Rect& sub_rect, |
| 60 gfx::JavaBitmap& bitmap) OVERRIDE; | 63 gfx::JavaBitmap& bitmap) OVERRIDE; |
| 61 | 64 |
| 62 // LayerTreeHostClient implementation. | 65 // LayerTreeHostClient implementation. |
| 63 virtual void willBeginFrame() OVERRIDE {} | 66 virtual void willBeginFrame() OVERRIDE {} |
| 64 virtual void didBeginFrame() OVERRIDE {} | 67 virtual void didBeginFrame() OVERRIDE {} |
| 65 virtual void animate(double monotonicFrameBeginTime) OVERRIDE; | 68 virtual void animate(double monotonicFrameBeginTime) OVERRIDE; |
| 66 virtual void layout() OVERRIDE; | 69 virtual void layout() OVERRIDE; |
| 67 virtual void applyScrollAndScale(gfx::Vector2d scrollDelta, | 70 virtual void applyScrollAndScale(gfx::Vector2d scrollDelta, |
| 68 float pageScale) OVERRIDE; | 71 float pageScale) OVERRIDE; |
| 69 virtual scoped_ptr<cc::OutputSurface> createOutputSurface() OVERRIDE; | 72 virtual scoped_ptr<cc::OutputSurface> createOutputSurface() OVERRIDE; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 97 | 100 |
| 98 Compositor::Client* client_; | 101 Compositor::Client* client_; |
| 99 base::WeakPtrFactory<CompositorImpl> weak_factory_; | 102 base::WeakPtrFactory<CompositorImpl> weak_factory_; |
| 100 | 103 |
| 101 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); | 104 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); |
| 102 }; | 105 }; |
| 103 | 106 |
| 104 } // namespace content | 107 } // namespace content |
| 105 | 108 |
| 106 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ | 109 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ |
| OLD | NEW |