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

Side by Side Diff: content/renderer/pepper/pepper_platform_context_3d_impl.h

Issue 10386145: Add the necessary plumbing mechanisms to ensure proper WebGL support inside the <browser> tag, whic… (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Address comments; remove createOffscreenGraphicsContext3D Created 8 years, 7 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
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_PEPPER_PEPPER_PLATFORM_CONTEXT_3D_IMPL_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_CONTEXT_3D_IMPL_H_
6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_CONTEXT_3D_IMPL_H_ 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_CONTEXT_3D_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 17 matching lines...) Expand all
28 28
29 class PepperParentContextProvider; 29 class PepperParentContextProvider;
30 30
31 class PlatformContext3DImpl 31 class PlatformContext3DImpl
32 : public webkit::ppapi::PluginDelegate::PlatformContext3D { 32 : public webkit::ppapi::PluginDelegate::PlatformContext3D {
33 public: 33 public:
34 explicit PlatformContext3DImpl( 34 explicit PlatformContext3DImpl(
35 PepperParentContextProvider* parent_context_provider); 35 PepperParentContextProvider* parent_context_provider);
36 virtual ~PlatformContext3DImpl(); 36 virtual ~PlatformContext3DImpl();
37 37
38 virtual bool Init(const int32* attrib_list) OVERRIDE; 38 virtual bool Init(const int32* attrib_list,
39 PlatformContext3D* share_context) OVERRIDE;
39 virtual unsigned GetBackingTextureId() OVERRIDE; 40 virtual unsigned GetBackingTextureId() OVERRIDE;
40 virtual bool IsOpaque() OVERRIDE; 41 virtual bool IsOpaque() OVERRIDE;
41 virtual gpu::CommandBuffer* GetCommandBuffer() OVERRIDE; 42 virtual gpu::CommandBuffer* GetCommandBuffer() OVERRIDE;
42 virtual int GetCommandBufferRouteId() OVERRIDE; 43 virtual int GetCommandBufferRouteId() OVERRIDE;
43 virtual void SetContextLostCallback(const base::Closure& callback) OVERRIDE; 44 virtual void SetContextLostCallback(const base::Closure& callback) OVERRIDE;
44 virtual void SetOnConsoleMessageCallback( 45 virtual void SetOnConsoleMessageCallback(
45 const ConsoleMessageCallback& callback) OVERRIDE; 46 const ConsoleMessageCallback& callback) OVERRIDE;
46 virtual bool Echo(const base::Closure& task) OVERRIDE; 47 virtual bool Echo(const base::Closure& task) OVERRIDE;
47 48
48 private: 49 private:
(...skipping 11 matching lines...) Expand all
60 base::Closure context_lost_callback_; 61 base::Closure context_lost_callback_;
61 ConsoleMessageCallback console_message_callback_; 62 ConsoleMessageCallback console_message_callback_;
62 base::WeakPtrFactory<PlatformContext3DImpl> weak_ptr_factory_; 63 base::WeakPtrFactory<PlatformContext3DImpl> weak_ptr_factory_;
63 }; 64 };
64 65
65 } // namespace content 66 } // namespace content
66 67
67 #endif // ENABLE_GPU 68 #endif // ENABLE_GPU
68 69
69 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_CONTEXT_3D_IMPL_H_ 70 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_CONTEXT_3D_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698