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

Side by Side Diff: content/renderer/pepper/pepper_plugin_delegate_impl.cc

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 #include "content/renderer/pepper/pepper_plugin_delegate_impl.h" 5 #include "content/renderer/pepper/pepper_plugin_delegate_impl.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 #include <cstddef> 8 #include <cstddef>
9 #include <map> 9 #include <map>
10 #include <queue> 10 #include <queue>
(...skipping 736 matching lines...) Expand 10 before | Expand all | Expand 10 after
747 // context, because it won't be visible. This allows graceful fallback in the 747 // context, because it won't be visible. This allows graceful fallback in the
748 // modules. 748 // modules.
749 if (!render_view_->webkit_preferences().accelerated_plugins_enabled) 749 if (!render_view_->webkit_preferences().accelerated_plugins_enabled)
750 return NULL; 750 return NULL;
751 return new PlatformContext3DImpl(this); 751 return new PlatformContext3DImpl(this);
752 #else 752 #else
753 return NULL; 753 return NULL;
754 #endif 754 #endif
755 } 755 }
756 756
757 void PepperPluginDelegateImpl::ReparentContext(
758 webkit::ppapi::PluginDelegate::PlatformContext3D* context) {
759 static_cast<PlatformContext3DImpl*>(context)->SetParentContext(this);
760 }
761
757 webkit::ppapi::PluginDelegate::PlatformVideoCapture* 762 webkit::ppapi::PluginDelegate::PlatformVideoCapture*
758 PepperPluginDelegateImpl::CreateVideoCapture( 763 PepperPluginDelegateImpl::CreateVideoCapture(
759 const std::string& device_id, 764 const std::string& device_id,
760 PlatformVideoCaptureEventHandler* handler) { 765 PlatformVideoCaptureEventHandler* handler) {
761 return new PepperPlatformVideoCaptureImpl(AsWeakPtr(), device_id, handler); 766 return new PepperPlatformVideoCaptureImpl(AsWeakPtr(), device_id, handler);
762 } 767 }
763 768
764 webkit::ppapi::PluginDelegate::PlatformVideoDecoder* 769 webkit::ppapi::PluginDelegate::PlatformVideoDecoder*
765 PepperPluginDelegateImpl::CreateVideoDecoder( 770 PepperPluginDelegateImpl::CreateVideoDecoder(
766 media::VideoDecodeAccelerator::Client* client, 771 media::VideoDecodeAccelerator::Client* client,
(...skipping 1067 matching lines...) Expand 10 before | Expand all | Expand 10 after
1834 else 1839 else
1835 return render_view_->mouse_lock_dispatcher(); 1840 return render_view_->mouse_lock_dispatcher();
1836 } 1841 }
1837 1842
1838 webkit_glue::ClipboardClient* 1843 webkit_glue::ClipboardClient*
1839 PepperPluginDelegateImpl::CreateClipboardClient() const { 1844 PepperPluginDelegateImpl::CreateClipboardClient() const {
1840 return new RendererClipboardClient; 1845 return new RendererClipboardClient;
1841 } 1846 }
1842 1847
1843 } // namespace content 1848 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698