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 WEBKIT_PLUGINS_PPAPI_PPB_GRAPHICS_3D_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PPB_GRAPHICS_3D_IMPL_H_ |
6 #define WEBKIT_PLUGINS_PPAPI_PPB_GRAPHICS_3D_IMPL_H_ | 6 #define CONTENT_RENDERER_PEPPER_PPB_GRAPHICS_3D_IMPL_H_ |
7 | 7 |
8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
| 9 #include "content/renderer/pepper/plugin_delegate.h" |
9 #include "ppapi/shared_impl/ppb_graphics_3d_shared.h" | 10 #include "ppapi/shared_impl/ppb_graphics_3d_shared.h" |
10 #include "ppapi/shared_impl/resource.h" | 11 #include "ppapi/shared_impl/resource.h" |
11 #include "webkit/plugins/ppapi/plugin_delegate.h" | |
12 | 12 |
13 namespace webkit { | 13 namespace webkit { |
14 namespace ppapi { | 14 namespace ppapi { |
15 | 15 |
16 class PPB_Graphics3D_Impl : public ::ppapi::PPB_Graphics3D_Shared { | 16 class PPB_Graphics3D_Impl : public ::ppapi::PPB_Graphics3D_Shared { |
17 public: | 17 public: |
18 virtual ~PPB_Graphics3D_Impl(); | 18 virtual ~PPB_Graphics3D_Impl(); |
19 | 19 |
20 static PP_Resource Create(PP_Instance instance, | 20 static PP_Resource Create(PP_Instance instance, |
21 PP_Resource share_context, | 21 PP_Resource share_context, |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 // PluginDelegate's 3D Context. Responsible for providing the command buffer. | 85 // PluginDelegate's 3D Context. Responsible for providing the command buffer. |
86 scoped_ptr<PluginDelegate::PlatformContext3D> platform_context_; | 86 scoped_ptr<PluginDelegate::PlatformContext3D> platform_context_; |
87 base::WeakPtrFactory<PPB_Graphics3D_Impl> weak_ptr_factory_; | 87 base::WeakPtrFactory<PPB_Graphics3D_Impl> weak_ptr_factory_; |
88 | 88 |
89 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Impl); | 89 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Impl); |
90 }; | 90 }; |
91 | 91 |
92 } // namespace ppapi | 92 } // namespace ppapi |
93 } // namespace webkit | 93 } // namespace webkit |
94 | 94 |
95 #endif // WEBKIT_PLUGINS_PPAPI_PPB_GRAPHICS_3D_IMPL_H_ | 95 #endif // CONTENT_RENDERER_PEPPER_PPB_GRAPHICS_3D_IMPL_H_ |
OLD | NEW |