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

Side by Side Diff: ppapi/proxy/resource_creation_proxy.h

Issue 547733002: [Pepper GL] Use shared state to fix a memory leak in MapSub GL extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update Created 6 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
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 PPAPI_PROXY_RESOURCE_CREATION_PROXY_H_ 5 #ifndef PPAPI_PROXY_RESOURCE_CREATION_PROXY_H_
6 #define PPAPI_PROXY_RESOURCE_CREATION_PROXY_H_ 6 #define PPAPI_PROXY_RESOURCE_CREATION_PROXY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 const PP_Var& accept_types) OVERRIDE; 112 const PP_Var& accept_types) OVERRIDE;
113 virtual PP_Resource CreateGraphics2D(PP_Instance pp_instance, 113 virtual PP_Resource CreateGraphics2D(PP_Instance pp_instance,
114 const PP_Size* size, 114 const PP_Size* size,
115 PP_Bool is_always_opaque) OVERRIDE; 115 PP_Bool is_always_opaque) OVERRIDE;
116 virtual PP_Resource CreateGraphics3D(PP_Instance instance, 116 virtual PP_Resource CreateGraphics3D(PP_Instance instance,
117 PP_Resource share_context, 117 PP_Resource share_context,
118 const int32_t* attrib_list) OVERRIDE; 118 const int32_t* attrib_list) OVERRIDE;
119 virtual PP_Resource CreateGraphics3DRaw( 119 virtual PP_Resource CreateGraphics3DRaw(
120 PP_Instance instance, 120 PP_Instance instance,
121 PP_Resource share_context, 121 PP_Resource share_context,
122 const int32_t* attrib_list) OVERRIDE; 122 const int32_t* attrib_list,
123 base::SharedMemoryHandle* shared_state) OVERRIDE;
123 virtual PP_Resource CreateHostResolver(PP_Instance instance) OVERRIDE; 124 virtual PP_Resource CreateHostResolver(PP_Instance instance) OVERRIDE;
124 virtual PP_Resource CreateHostResolverPrivate(PP_Instance instance) OVERRIDE; 125 virtual PP_Resource CreateHostResolverPrivate(PP_Instance instance) OVERRIDE;
125 virtual PP_Resource CreateImageData(PP_Instance instance, 126 virtual PP_Resource CreateImageData(PP_Instance instance,
126 PP_ImageDataFormat format, 127 PP_ImageDataFormat format,
127 const PP_Size* size, 128 const PP_Size* size,
128 PP_Bool init_to_zero) OVERRIDE; 129 PP_Bool init_to_zero) OVERRIDE;
129 virtual PP_Resource CreateImageDataSimple(PP_Instance instance, 130 virtual PP_Resource CreateImageDataSimple(PP_Instance instance,
130 PP_ImageDataFormat format, 131 PP_ImageDataFormat format,
131 const PP_Size* size, 132 const PP_Size* size,
132 PP_Bool init_to_zero) OVERRIDE; 133 PP_Bool init_to_zero) OVERRIDE;
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 192
192 private: 193 private:
193 Connection GetConnection(); 194 Connection GetConnection();
194 DISALLOW_COPY_AND_ASSIGN(ResourceCreationProxy); 195 DISALLOW_COPY_AND_ASSIGN(ResourceCreationProxy);
195 }; 196 };
196 197
197 } // namespace proxy 198 } // namespace proxy
198 } // namespace ppapi 199 } // namespace ppapi
199 200
200 #endif // PPAPI_PROXY_RESOURCE_CREATION_PROXY_H_ 201 #endif // PPAPI_PROXY_RESOURCE_CREATION_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698