Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(344)

Side by Side Diff: content/renderer/render_widget_fullscreen_pepper.h

Issue 10918182: Don't require a recreation of the context when fullscreening (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix style Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 // pepper::FullscreenContainer API. 48 // pepper::FullscreenContainer API.
49 virtual void Invalidate() OVERRIDE; 49 virtual void Invalidate() OVERRIDE;
50 virtual void InvalidateRect(const WebKit::WebRect& rect) OVERRIDE; 50 virtual void InvalidateRect(const WebKit::WebRect& rect) OVERRIDE;
51 virtual void ScrollRect(int dx, int dy, const WebKit::WebRect& rect) OVERRIDE; 51 virtual void ScrollRect(int dx, int dy, const WebKit::WebRect& rect) OVERRIDE;
52 virtual void Destroy() OVERRIDE; 52 virtual void Destroy() OVERRIDE;
53 virtual void DidChangeCursor(const WebKit::WebCursorInfo& cursor) OVERRIDE; 53 virtual void DidChangeCursor(const WebKit::WebCursorInfo& cursor) OVERRIDE;
54 virtual webkit::ppapi::PluginDelegate::PlatformContext3D* 54 virtual webkit::ppapi::PluginDelegate::PlatformContext3D*
55 CreateContext3D() OVERRIDE; 55 CreateContext3D() OVERRIDE;
56 virtual MouseLockDispatcher* GetMouseLockDispatcher() OVERRIDE; 56 virtual MouseLockDispatcher* GetMouseLockDispatcher() OVERRIDE;
57 virtual void ReparentContext(
58 webkit::ppapi::PluginDelegate::PlatformContext3D*) OVERRIDE;
57 59
58 // IPC::Listener implementation. This overrides the implementation 60 // IPC::Listener implementation. This overrides the implementation
59 // in RenderWidgetFullscreen. 61 // in RenderWidgetFullscreen.
60 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; 62 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
61 63
62 WebGraphicsContext3DCommandBufferImpl* context() const { return context_; } 64 WebGraphicsContext3DCommandBufferImpl* context() const { return context_; }
63 void SwapBuffers(); 65 void SwapBuffers();
64 66
65 // Could be NULL when this widget is closing. 67 // Could be NULL when this widget is closing.
66 webkit::ppapi::PluginInstance* plugin() const { return plugin_; } 68 webkit::ppapi::PluginInstance* plugin() const { return plugin_; }
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 unsigned int program_; 121 unsigned int program_;
120 122
121 base::WeakPtrFactory<RenderWidgetFullscreenPepper> weak_ptr_factory_; 123 base::WeakPtrFactory<RenderWidgetFullscreenPepper> weak_ptr_factory_;
122 124
123 scoped_ptr<MouseLockDispatcher> mouse_lock_dispatcher_; 125 scoped_ptr<MouseLockDispatcher> mouse_lock_dispatcher_;
124 126
125 DISALLOW_COPY_AND_ASSIGN(RenderWidgetFullscreenPepper); 127 DISALLOW_COPY_AND_ASSIGN(RenderWidgetFullscreenPepper);
126 }; 128 };
127 129
128 #endif // CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_PEPPER_H_ 130 #endif // CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_PEPPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698