| 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; |
| 79 virtual void DestroyOffscreenContext3dForCompositorThread() OVERRIDE; |
| 73 virtual scoped_ptr<cc::InputHandler> createInputHandler() OVERRIDE; | 80 virtual scoped_ptr<cc::InputHandler> createInputHandler() OVERRIDE; |
| 74 virtual void didRecreateOutputSurface(bool success) OVERRIDE; | 81 virtual void didRecreateOutputSurface(bool success) OVERRIDE; |
| 75 virtual void willCommit() OVERRIDE {} | 82 virtual void willCommit() OVERRIDE {} |
| 76 virtual void didCommit() OVERRIDE; | 83 virtual void didCommit() OVERRIDE; |
| 77 virtual void didCommitAndDrawFrame() OVERRIDE; | 84 virtual void didCommitAndDrawFrame() OVERRIDE; |
| 78 virtual void didCompleteSwapBuffers() OVERRIDE; | 85 virtual void didCompleteSwapBuffers() OVERRIDE; |
| 79 virtual void scheduleComposite() OVERRIDE; | 86 virtual void scheduleComposite() OVERRIDE; |
| 80 virtual scoped_ptr<cc::FontAtlas> createFontAtlas() OVERRIDE; | 87 virtual scoped_ptr<cc::FontAtlas> createFontAtlas() OVERRIDE; |
| 81 | 88 |
| 82 // WebGraphicsContext3DSwapBuffersClient implementation. | 89 // WebGraphicsContext3DSwapBuffersClient implementation. |
| (...skipping 17 matching lines...) Expand all Loading... |
| 100 | 107 |
| 101 Compositor::Client* client_; | 108 Compositor::Client* client_; |
| 102 base::WeakPtrFactory<CompositorImpl> weak_factory_; | 109 base::WeakPtrFactory<CompositorImpl> weak_factory_; |
| 103 | 110 |
| 104 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); | 111 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); |
| 105 }; | 112 }; |
| 106 | 113 |
| 107 } // namespace content | 114 } // namespace content |
| 108 | 115 |
| 109 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ | 116 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ |
| OLD | NEW |