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

Side by Side Diff: webkit/plugins/ppapi/ppb_graphics_3d_impl.h

Issue 8790004: Rename the shared impl files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged Created 9 years 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
« no previous file with comments | « webkit/plugins/ppapi/ppb_font_impl.cc ('k') | webkit/plugins/ppapi/ppb_image_data_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 WEBKIT_PLUGINS_PPAPI_PPB_GRAPHICS_3D_IMPL_H_
6 #define WEBKIT_PLUGINS_PPAPI_PPB_GRAPHICS_3D_IMPL_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PPB_GRAPHICS_3D_IMPL_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "ppapi/shared_impl/graphics_3d_impl.h" 9 #include "ppapi/shared_impl/ppb_graphics_3d_shared.h"
10 #include "ppapi/shared_impl/resource.h" 10 #include "ppapi/shared_impl/resource.h"
11 #include "webkit/plugins/ppapi/plugin_delegate.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::Resource, 16 class PPB_Graphics3D_Impl : public ::ppapi::Resource,
17 public ::ppapi::Graphics3DImpl { 17 public ::ppapi::PPB_Graphics3D_Shared {
18 public: 18 public:
19 virtual ~PPB_Graphics3D_Impl(); 19 virtual ~PPB_Graphics3D_Impl();
20 20
21 static PP_Resource Create(PP_Instance instance, 21 static PP_Resource Create(PP_Instance instance,
22 PP_Resource share_context, 22 PP_Resource share_context,
23 const int32_t* attrib_list); 23 const int32_t* attrib_list);
24 static PP_Resource CreateRaw(PP_Instance instance, 24 static PP_Resource CreateRaw(PP_Instance instance,
25 PP_Resource share_context, 25 PP_Resource share_context,
26 const int32_t* attrib_list); 26 const int32_t* attrib_list);
27 27
(...skipping 27 matching lines...) Expand all
55 // flushed to the screen. These messages are used to send Flush callbacks to 55 // flushed to the screen. These messages are used to send Flush callbacks to
56 // the plugin. 56 // the plugin.
57 void ViewInitiatedPaint(); 57 void ViewInitiatedPaint();
58 void ViewFlushedPaint(); 58 void ViewFlushedPaint();
59 59
60 PluginDelegate::PlatformContext3D* platform_context() { 60 PluginDelegate::PlatformContext3D* platform_context() {
61 return platform_context_.get(); 61 return platform_context_.get();
62 } 62 }
63 63
64 protected: 64 protected:
65 // ppapi::Graphics3DImpl overrides. 65 // ppapi::PPB_Graphics3D_Shared overrides.
66 virtual gpu::CommandBuffer* GetCommandBuffer() OVERRIDE; 66 virtual gpu::CommandBuffer* GetCommandBuffer() OVERRIDE;
67 virtual int32 DoSwapBuffers() OVERRIDE; 67 virtual int32 DoSwapBuffers() OVERRIDE;
68 68
69 private: 69 private:
70 explicit PPB_Graphics3D_Impl(PP_Instance instance); 70 explicit PPB_Graphics3D_Impl(PP_Instance instance);
71 71
72 bool Init(PP_Resource share_context, 72 bool Init(PP_Resource share_context,
73 const int32_t* attrib_list); 73 const int32_t* attrib_list);
74 bool InitRaw(PP_Resource share_context, 74 bool InitRaw(PP_Resource share_context,
75 const int32_t* attrib_list); 75 const int32_t* attrib_list);
(...skipping 12 matching lines...) Expand all
88 scoped_ptr<PluginDelegate::PlatformContext3D> platform_context_; 88 scoped_ptr<PluginDelegate::PlatformContext3D> platform_context_;
89 base::WeakPtrFactory<PPB_Graphics3D_Impl> weak_ptr_factory_; 89 base::WeakPtrFactory<PPB_Graphics3D_Impl> weak_ptr_factory_;
90 90
91 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Impl); 91 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Impl);
92 }; 92 };
93 93
94 } // namespace ppapi 94 } // namespace ppapi
95 } // namespace webkit 95 } // namespace webkit
96 96
97 #endif // WEBKIT_PLUGINS_PPAPI_PPB_GRAPHICS_3D_IMPL_H_ 97 #endif // WEBKIT_PLUGINS_PPAPI_PPB_GRAPHICS_3D_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/ppb_font_impl.cc ('k') | webkit/plugins/ppapi/ppb_image_data_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698