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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 gfx::JavaBitmap& bitmap) OVERRIDE; | 63 gfx::JavaBitmap& bitmap) OVERRIDE; |
64 | 64 |
65 // LayerTreeHostClient implementation. | 65 // LayerTreeHostClient implementation. |
66 virtual void willBeginFrame() OVERRIDE {} | 66 virtual void willBeginFrame() OVERRIDE {} |
67 virtual void didBeginFrame() OVERRIDE {} | 67 virtual void didBeginFrame() OVERRIDE {} |
68 virtual void animate(double monotonicFrameBeginTime) OVERRIDE; | 68 virtual void animate(double monotonicFrameBeginTime) OVERRIDE; |
69 virtual void layout() OVERRIDE; | 69 virtual void layout() OVERRIDE; |
70 virtual void applyScrollAndScale(gfx::Vector2d scrollDelta, | 70 virtual void applyScrollAndScale(gfx::Vector2d scrollDelta, |
71 float pageScale) OVERRIDE; | 71 float pageScale) OVERRIDE; |
72 virtual scoped_ptr<cc::OutputSurface> createOutputSurface() OVERRIDE; | 72 virtual scoped_ptr<cc::OutputSurface> createOutputSurface() OVERRIDE; |
| 73 virtual WebKit::WebGraphicsContext3D* OffscreenContext3dForMainThread() |
| 74 OVERRIDE; |
| 75 virtual WebKit::WebGraphicsContext3D* OffscreenContext3dForCompositorThread() |
| 76 OVERRIDE; |
| 77 virtual GrContext* OffscreenGrContextForMainThread() OVERRIDE; |
| 78 virtual GrContext* OffscreenGrContextForCompositorThread() OVERRIDE; |
73 virtual scoped_ptr<cc::InputHandler> createInputHandler() OVERRIDE; | 79 virtual scoped_ptr<cc::InputHandler> createInputHandler() OVERRIDE; |
74 virtual void didRecreateOutputSurface(bool success) OVERRIDE; | 80 virtual void didRecreateOutputSurface(bool success) OVERRIDE; |
75 virtual void willCommit() OVERRIDE {} | 81 virtual void willCommit() OVERRIDE {} |
76 virtual void didCommit() OVERRIDE; | 82 virtual void didCommit() OVERRIDE; |
77 virtual void didCommitAndDrawFrame() OVERRIDE; | 83 virtual void didCommitAndDrawFrame() OVERRIDE; |
78 virtual void didCompleteSwapBuffers() OVERRIDE; | 84 virtual void didCompleteSwapBuffers() OVERRIDE; |
79 virtual void scheduleComposite() OVERRIDE; | 85 virtual void scheduleComposite() OVERRIDE; |
80 virtual scoped_ptr<cc::FontAtlas> createFontAtlas() OVERRIDE; | 86 virtual scoped_ptr<cc::FontAtlas> createFontAtlas() OVERRIDE; |
81 | 87 |
82 // WebGraphicsContext3DSwapBuffersClient implementation. | 88 // WebGraphicsContext3DSwapBuffersClient implementation. |
(...skipping 17 matching lines...) Expand all Loading... |
100 | 106 |
101 Compositor::Client* client_; | 107 Compositor::Client* client_; |
102 base::WeakPtrFactory<CompositorImpl> weak_factory_; | 108 base::WeakPtrFactory<CompositorImpl> weak_factory_; |
103 | 109 |
104 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); | 110 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); |
105 }; | 111 }; |
106 | 112 |
107 } // namespace content | 113 } // namespace content |
108 | 114 |
109 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ | 115 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ |
OLD | NEW |