| 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_RENDERER_RENDER_WIDGET_FULLSCREEN_PEPPER_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_PEPPER_H_ |
| 6 #define CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_PEPPER_H_ | 6 #define CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_PEPPER_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" | 10 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 float* scale_factor) OVERRIDE; | 90 float* scale_factor) OVERRIDE; |
| 91 virtual void OnResize(const gfx::Size& new_size, | 91 virtual void OnResize(const gfx::Size& new_size, |
| 92 const gfx::Rect& resizer_rect, | 92 const gfx::Rect& resizer_rect, |
| 93 bool is_fullscreen) OVERRIDE; | 93 bool is_fullscreen) OVERRIDE; |
| 94 | 94 |
| 95 // RenderWidgetFullscreen API. | 95 // RenderWidgetFullscreen API. |
| 96 virtual WebKit::WebWidget* CreateWebWidget() OVERRIDE; | 96 virtual WebKit::WebWidget* CreateWebWidget() OVERRIDE; |
| 97 | 97 |
| 98 // RenderWidget overrides. | 98 // RenderWidget overrides. |
| 99 virtual bool SupportsAsynchronousSwapBuffers() OVERRIDE; | 99 virtual bool SupportsAsynchronousSwapBuffers() OVERRIDE; |
| 100 virtual void Composite() OVERRIDE; |
| 100 | 101 |
| 101 private: | 102 private: |
| 102 // Creates the GL context for compositing. | 103 // Creates the GL context for compositing. |
| 103 void CreateContext(); | 104 void CreateContext(); |
| 104 | 105 |
| 105 // Initialize the GL states and resources for compositing. | 106 // Initialize the GL states and resources for compositing. |
| 106 bool InitContext(); | 107 bool InitContext(); |
| 107 | 108 |
| 108 // Checks (and returns) whether accelerated compositing should be on or off, | 109 // Checks (and returns) whether accelerated compositing should be on or off, |
| 109 // and notify the browser. | 110 // and notify the browser. |
| (...skipping 17 matching lines...) Expand all Loading... |
| 127 base::WeakPtrFactory<RenderWidgetFullscreenPepper> weak_ptr_factory_; | 128 base::WeakPtrFactory<RenderWidgetFullscreenPepper> weak_ptr_factory_; |
| 128 | 129 |
| 129 scoped_ptr<MouseLockDispatcher> mouse_lock_dispatcher_; | 130 scoped_ptr<MouseLockDispatcher> mouse_lock_dispatcher_; |
| 130 | 131 |
| 131 DISALLOW_COPY_AND_ASSIGN(RenderWidgetFullscreenPepper); | 132 DISALLOW_COPY_AND_ASSIGN(RenderWidgetFullscreenPepper); |
| 132 }; | 133 }; |
| 133 | 134 |
| 134 } // namespace content | 135 } // namespace content |
| 135 | 136 |
| 136 #endif // CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_PEPPER_H_ | 137 #endif // CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_PEPPER_H_ |
| OLD | NEW |