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

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

Issue 8865008: Revert 113479 - Revert "Revert 113250 - Add CommandBuffer::SetGetBuffer" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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
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/ppb_graphics_3d_shared.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"
(...skipping 11 matching lines...) Expand all
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
28 // Resource override. 28 // Resource override.
29 virtual ::ppapi::thunk::PPB_Graphics3D_API* AsPPB_Graphics3D_API() OVERRIDE; 29 virtual ::ppapi::thunk::PPB_Graphics3D_API* AsPPB_Graphics3D_API() OVERRIDE;
30 30
31 // PPB_Graphics3D_API trusted implementation. 31 // PPB_Graphics3D_API trusted implementation.
32 virtual PP_Bool InitCommandBuffer() OVERRIDE; 32 virtual PP_Bool InitCommandBuffer(int32_t size) OVERRIDE;
33 virtual PP_Bool SetGetBuffer(int32_t transfer_buffer_id) OVERRIDE; 33 virtual PP_Bool GetRingBuffer(int* shm_handle,
34 uint32_t* shm_size) OVERRIDE;
34 virtual PP_Graphics3DTrustedState GetState() OVERRIDE; 35 virtual PP_Graphics3DTrustedState GetState() OVERRIDE;
35 virtual int32_t CreateTransferBuffer(uint32_t size) OVERRIDE; 36 virtual int32_t CreateTransferBuffer(uint32_t size) OVERRIDE;
36 virtual PP_Bool DestroyTransferBuffer(int32_t id) OVERRIDE; 37 virtual PP_Bool DestroyTransferBuffer(int32_t id) OVERRIDE;
37 virtual PP_Bool GetTransferBuffer(int32_t id, 38 virtual PP_Bool GetTransferBuffer(int32_t id,
38 int* shm_handle, 39 int* shm_handle,
39 uint32_t* shm_size) OVERRIDE; 40 uint32_t* shm_size) OVERRIDE;
40 virtual PP_Bool Flush(int32_t put_offset) OVERRIDE; 41 virtual PP_Bool Flush(int32_t put_offset) OVERRIDE;
41 virtual PP_Graphics3DTrustedState FlushSync(int32_t put_offset) OVERRIDE; 42 virtual PP_Graphics3DTrustedState FlushSync(int32_t put_offset) OVERRIDE;
42 virtual PP_Graphics3DTrustedState FlushSyncFast( 43 virtual PP_Graphics3DTrustedState FlushSyncFast(
43 int32_t put_offset, 44 int32_t put_offset,
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 scoped_ptr<PluginDelegate::PlatformContext3D> platform_context_; 88 scoped_ptr<PluginDelegate::PlatformContext3D> platform_context_;
88 base::WeakPtrFactory<PPB_Graphics3D_Impl> weak_ptr_factory_; 89 base::WeakPtrFactory<PPB_Graphics3D_Impl> weak_ptr_factory_;
89 90
90 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Impl); 91 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Impl);
91 }; 92 };
92 93
93 } // namespace ppapi 94 } // namespace ppapi
94 } // namespace webkit 95 } // namespace webkit
95 96
96 #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/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc ('k') | webkit/plugins/ppapi/ppb_graphics_3d_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698