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

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

Issue 7629017: Add a unified resource tracker shared between the proxy and the impl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments Created 9 years, 4 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) 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_SURFACE_3D_IMPL_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_SURFACE_3D_IMPL_H_
6 #define WEBKIT_PLUGINS_PPAPI_PPB_SURFACE_3D_IMPL_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PPB_SURFACE_3D_IMPL_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "ppapi/thunk/ppb_surface_3d_api.h" 9 #include "ppapi/thunk/ppb_surface_3d_api.h"
10 #include "webkit/plugins/ppapi/callbacks.h" 10 #include "webkit/plugins/ppapi/callbacks.h"
(...skipping 11 matching lines...) Expand all
22 22
23 class PPB_Surface3D_Impl : public Resource, 23 class PPB_Surface3D_Impl : public Resource,
24 public ::ppapi::thunk::PPB_Surface3D_API { 24 public ::ppapi::thunk::PPB_Surface3D_API {
25 public: 25 public:
26 virtual ~PPB_Surface3D_Impl(); 26 virtual ~PPB_Surface3D_Impl();
27 27
28 static PP_Resource Create(PluginInstance* instance_id, 28 static PP_Resource Create(PluginInstance* instance_id,
29 PP_Config3D_Dev config, 29 PP_Config3D_Dev config,
30 const int32_t* attrib_list); 30 const int32_t* attrib_list);
31 31
32 // ResourceObjectBase override. 32 // Resource override.
33 virtual ::ppapi::thunk::PPB_Surface3D_API* AsPPB_Surface3D_API() OVERRIDE; 33 virtual ::ppapi::thunk::PPB_Surface3D_API* AsPPB_Surface3D_API() OVERRIDE;
34 34
35 // PPB_Surface3D_API implementation. 35 // PPB_Surface3D_API implementation.
36 virtual int32_t SetAttrib(int32_t attribute, int32_t value) OVERRIDE; 36 virtual int32_t SetAttrib(int32_t attribute, int32_t value) OVERRIDE;
37 virtual int32_t GetAttrib(int32_t attribute, int32_t* value) OVERRIDE; 37 virtual int32_t GetAttrib(int32_t attribute, int32_t* value) OVERRIDE;
38 virtual int32_t SwapBuffers(PP_CompletionCallback callback) OVERRIDE; 38 virtual int32_t SwapBuffers(PP_CompletionCallback callback) OVERRIDE;
39 39
40 PPB_Context3D_Impl* context() const { 40 PPB_Context3D_Impl* context() const {
41 return context_; 41 return context_;
42 } 42 }
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 // The context this surface is currently bound to. 75 // The context this surface is currently bound to.
76 PPB_Context3D_Impl* context_; 76 PPB_Context3D_Impl* context_;
77 77
78 DISALLOW_COPY_AND_ASSIGN(PPB_Surface3D_Impl); 78 DISALLOW_COPY_AND_ASSIGN(PPB_Surface3D_Impl);
79 }; 79 };
80 80
81 } // namespace ppapi 81 } // namespace ppapi
82 } // namespace webkit 82 } // namespace webkit
83 83
84 #endif // WEBKIT_PLUGINS_PPAPI_PPB_SURFACE_3D_IMPL_H_ 84 #endif // WEBKIT_PLUGINS_PPAPI_PPB_SURFACE_3D_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698