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

Side by Side Diff: mojo/examples/pepper_container_app/resource_creation_impl.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: Remve base/memory/shared_memory.h from DEPS 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 MOJO_EXAMPLES_PEPPER_CONTAINER_APP_RESOURCE_CREATION_IMPL_H_ 5 #ifndef MOJO_EXAMPLES_PEPPER_CONTAINER_APP_RESOURCE_CREATION_IMPL_H_
6 #define MOJO_EXAMPLES_PEPPER_CONTAINER_APP_RESOURCE_CREATION_IMPL_H_ 6 #define MOJO_EXAMPLES_PEPPER_CONTAINER_APP_RESOURCE_CREATION_IMPL_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 const PP_Var& accept_types) OVERRIDE; 94 const PP_Var& accept_types) OVERRIDE;
95 virtual PP_Resource CreateGraphics2D(PP_Instance pp_instance, 95 virtual PP_Resource CreateGraphics2D(PP_Instance pp_instance,
96 const PP_Size* size, 96 const PP_Size* size,
97 PP_Bool is_always_opaque) OVERRIDE; 97 PP_Bool is_always_opaque) OVERRIDE;
98 virtual PP_Resource CreateGraphics3D(PP_Instance instance, 98 virtual PP_Resource CreateGraphics3D(PP_Instance instance,
99 PP_Resource share_context, 99 PP_Resource share_context,
100 const int32_t* attrib_list) OVERRIDE; 100 const int32_t* attrib_list) OVERRIDE;
101 virtual PP_Resource CreateGraphics3DRaw( 101 virtual PP_Resource CreateGraphics3DRaw(
102 PP_Instance instance, 102 PP_Instance instance,
103 PP_Resource share_context, 103 PP_Resource share_context,
104 const int32_t* attrib_list) OVERRIDE; 104 const int32_t* attrib_list,
105 base::SharedMemoryHandle* shared_state) OVERRIDE;
105 virtual PP_Resource CreateHostResolver(PP_Instance instance) OVERRIDE; 106 virtual PP_Resource CreateHostResolver(PP_Instance instance) OVERRIDE;
106 virtual PP_Resource CreateHostResolverPrivate(PP_Instance instance) OVERRIDE; 107 virtual PP_Resource CreateHostResolverPrivate(PP_Instance instance) OVERRIDE;
107 virtual PP_Resource CreateImageData(PP_Instance instance, 108 virtual PP_Resource CreateImageData(PP_Instance instance,
108 PP_ImageDataFormat format, 109 PP_ImageDataFormat format,
109 const PP_Size* size, 110 const PP_Size* size,
110 PP_Bool init_to_zero) OVERRIDE; 111 PP_Bool init_to_zero) OVERRIDE;
111 virtual PP_Resource CreateImageDataSimple(PP_Instance instance, 112 virtual PP_Resource CreateImageDataSimple(PP_Instance instance,
112 PP_ImageDataFormat format, 113 PP_ImageDataFormat format,
113 const PP_Size* size, 114 const PP_Size* size,
114 PP_Bool init_to_zero) OVERRIDE; 115 PP_Bool init_to_zero) OVERRIDE;
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 #endif // !defined(OS_NACL) 170 #endif // !defined(OS_NACL)
170 171
171 private: 172 private:
172 DISALLOW_COPY_AND_ASSIGN(ResourceCreationImpl); 173 DISALLOW_COPY_AND_ASSIGN(ResourceCreationImpl);
173 }; 174 };
174 175
175 } // namespace examples 176 } // namespace examples
176 } // namespace mojo 177 } // namespace mojo
177 178
178 #endif // MOJO_EXAMPLES_PEPPER_CONTAINER_APP_RESOURCE_CREATION_IMPL_H_ 179 #endif // MOJO_EXAMPLES_PEPPER_CONTAINER_APP_RESOURCE_CREATION_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/resource_creation_impl.cc ('k') | mojo/examples/pepper_container_app/resource_creation_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698