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 17 matching lines...) Expand all Loading... |
28 virtual ~CompositorImpl(); | 28 virtual ~CompositorImpl(); |
29 | 29 |
30 static bool IsInitialized(); | 30 static bool IsInitialized(); |
31 | 31 |
32 // Compositor implementation. | 32 // Compositor implementation. |
33 virtual void SetRootLayer(WebKit::WebLayer* root) OVERRIDE; | 33 virtual void SetRootLayer(WebKit::WebLayer* root) OVERRIDE; |
34 virtual void SetWindowSurface(ANativeWindow* window) OVERRIDE; | 34 virtual void SetWindowSurface(ANativeWindow* window) OVERRIDE; |
35 virtual void SetWindowBounds(const gfx::Size& size) OVERRIDE; | 35 virtual void SetWindowBounds(const gfx::Size& size) OVERRIDE; |
36 virtual bool CompositeAndReadback( | 36 virtual bool CompositeAndReadback( |
37 void *pixels, const gfx::Rect& rect) OVERRIDE; | 37 void *pixels, const gfx::Rect& rect) OVERRIDE; |
| 38 virtual WebKit::WebGraphicsContext3D* GetContext3D() OVERRIDE; |
38 virtual void OnSurfaceUpdated( | 39 virtual void OnSurfaceUpdated( |
39 const SurfacePresentedCallback& callback) OVERRIDE; | 40 const SurfacePresentedCallback& callback) OVERRIDE; |
40 | 41 |
41 // WebLayerTreeViewClient implementation. | 42 // WebLayerTreeViewClient implementation. |
42 virtual void updateAnimations(double frameBeginTime) OVERRIDE; | 43 virtual void updateAnimations(double frameBeginTime) OVERRIDE; |
43 virtual void layout() OVERRIDE; | 44 virtual void layout() OVERRIDE; |
44 virtual void applyScrollAndScale(const WebKit::WebSize& scrollDelta, | 45 virtual void applyScrollAndScale(const WebKit::WebSize& scrollDelta, |
45 float scaleFactor) OVERRIDE; | 46 float scaleFactor) OVERRIDE; |
46 virtual WebKit::WebCompositorOutputSurface* createOutputSurface() OVERRIDE; | 47 virtual WebKit::WebCompositorOutputSurface* createOutputSurface() OVERRIDE; |
47 virtual void didRecreateOutputSurface(bool success) OVERRIDE; | 48 virtual void didRecreateOutputSurface(bool success) OVERRIDE; |
(...skipping 10 matching lines...) Expand all Loading... |
58 | 59 |
59 ANativeWindow* window_; | 60 ANativeWindow* window_; |
60 int surface_id_; | 61 int surface_id_; |
61 | 62 |
62 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); | 63 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); |
63 }; | 64 }; |
64 | 65 |
65 } // namespace content | 66 } // namespace content |
66 | 67 |
67 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ | 68 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ |
OLD | NEW |