OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 5 #ifndef CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
6 #define CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 6 #define CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
7 | 7 |
8 #include "cc/layer_tree_host_client.h" | 8 #include "cc/layer_tree_host_client.h" |
9 #include "cc/layer_tree_settings.h" | 9 #include "cc/layer_tree_settings.h" |
10 #include "third_party/WebKit/Source/Platform/chromium/public/WebLayerTreeView.h" | 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebLayerTreeView.h" |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 | 70 |
71 // cc::LayerTreeHostClient implementation. | 71 // cc::LayerTreeHostClient implementation. |
72 virtual void willBeginFrame() OVERRIDE; | 72 virtual void willBeginFrame() OVERRIDE; |
73 virtual void didBeginFrame() OVERRIDE; | 73 virtual void didBeginFrame() OVERRIDE; |
74 virtual void animate(double monotonic_frame_begin_time) OVERRIDE; | 74 virtual void animate(double monotonic_frame_begin_time) OVERRIDE; |
75 virtual void layout() OVERRIDE; | 75 virtual void layout() OVERRIDE; |
76 virtual void applyScrollAndScale(gfx::Vector2d scroll_delta, | 76 virtual void applyScrollAndScale(gfx::Vector2d scroll_delta, |
77 float page_scale) OVERRIDE; | 77 float page_scale) OVERRIDE; |
78 virtual scoped_ptr<cc::OutputSurface> createOutputSurface() OVERRIDE; | 78 virtual scoped_ptr<cc::OutputSurface> createOutputSurface() OVERRIDE; |
79 virtual void didRecreateOutputSurface(bool success) OVERRIDE; | 79 virtual void didRecreateOutputSurface(bool success) OVERRIDE; |
| 80 virtual WebKit::WebGraphicsContext3D* OffscreenContext3dForMainThread() |
| 81 OVERRIDE; |
| 82 virtual WebKit::WebGraphicsContext3D* OffscreenContext3dForCompositorThread() |
| 83 OVERRIDE; |
| 84 virtual GrContext* OffscreenGrContextForMainThread() OVERRIDE; |
| 85 virtual GrContext* OffscreenGrContextForCompositorThread() OVERRIDE; |
| 86 virtual void DestroyOffscreenContext3dForCompositorThread() OVERRIDE; |
80 virtual scoped_ptr<cc::InputHandler> createInputHandler() OVERRIDE; | 87 virtual scoped_ptr<cc::InputHandler> createInputHandler() OVERRIDE; |
81 virtual void willCommit() OVERRIDE; | 88 virtual void willCommit() OVERRIDE; |
82 virtual void didCommit() OVERRIDE; | 89 virtual void didCommit() OVERRIDE; |
83 virtual void didCommitAndDrawFrame() OVERRIDE; | 90 virtual void didCommitAndDrawFrame() OVERRIDE; |
84 virtual void didCompleteSwapBuffers() OVERRIDE; | 91 virtual void didCompleteSwapBuffers() OVERRIDE; |
85 virtual void scheduleComposite() OVERRIDE; | 92 virtual void scheduleComposite() OVERRIDE; |
86 virtual scoped_ptr<cc::FontAtlas> createFontAtlas() OVERRIDE; | 93 virtual scoped_ptr<cc::FontAtlas> createFontAtlas() OVERRIDE; |
87 | 94 |
88 private: | 95 private: |
89 RenderWidgetCompositor(RenderWidget* widget, | 96 RenderWidgetCompositor(RenderWidget* widget, |
90 WebKit::WebLayerTreeViewClient* client); | 97 WebKit::WebLayerTreeViewClient* client); |
91 | 98 |
92 bool initialize(cc::LayerTreeSettings settings); | 99 bool initialize(cc::LayerTreeSettings settings); |
93 | 100 |
94 bool threaded_; | 101 bool threaded_; |
95 RenderWidget* widget_; | 102 RenderWidget* widget_; |
96 WebKit::WebLayerTreeViewClient* client_; | 103 WebKit::WebLayerTreeViewClient* client_; |
97 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; | 104 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; |
98 }; | 105 }; |
99 | 106 |
100 } // namespace content | 107 } // namespace content |
101 | 108 |
102 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 109 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
103 | 110 |
OLD | NEW |