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

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

Issue 12581004: Move InsertSyncPoint to GLES2Interface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 7 years, 9 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
« no previous file with comments | « ppapi/thunk/ppb_graphics_3d_api.h ('k') | webkit/plugins/ppapi/ppb_graphics_3d_impl.cc » ('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) 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 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 20 matching lines...) Expand all
31 virtual int32_t CreateTransferBuffer(uint32_t size) OVERRIDE; 31 virtual int32_t CreateTransferBuffer(uint32_t size) OVERRIDE;
32 virtual PP_Bool DestroyTransferBuffer(int32_t id) OVERRIDE; 32 virtual PP_Bool DestroyTransferBuffer(int32_t id) OVERRIDE;
33 virtual PP_Bool GetTransferBuffer(int32_t id, 33 virtual PP_Bool GetTransferBuffer(int32_t id,
34 int* shm_handle, 34 int* shm_handle,
35 uint32_t* shm_size) OVERRIDE; 35 uint32_t* shm_size) OVERRIDE;
36 virtual PP_Bool Flush(int32_t put_offset) OVERRIDE; 36 virtual PP_Bool Flush(int32_t put_offset) OVERRIDE;
37 virtual PP_Graphics3DTrustedState FlushSync(int32_t put_offset) OVERRIDE; 37 virtual PP_Graphics3DTrustedState FlushSync(int32_t put_offset) OVERRIDE;
38 virtual PP_Graphics3DTrustedState FlushSyncFast( 38 virtual PP_Graphics3DTrustedState FlushSyncFast(
39 int32_t put_offset, 39 int32_t put_offset,
40 int32_t last_known_get) OVERRIDE; 40 int32_t last_known_get) OVERRIDE;
41 virtual uint32_t InsertSyncPoint() OVERRIDE;
41 42
42 // Binds/unbinds the graphics of this context with the associated instance. 43 // Binds/unbinds the graphics of this context with the associated instance.
43 // Returns true if binding/unbinding is successful. 44 // Returns true if binding/unbinding is successful.
44 bool BindToInstance(bool bind); 45 bool BindToInstance(bool bind);
45 46
46 // Returns the id of texture that can be used by the compositor. 47 // Returns the id of texture that can be used by the compositor.
47 unsigned int GetBackingTextureId(); 48 unsigned int GetBackingTextureId();
48 49
49 // Returns true if the backing texture is always opaque. 50 // Returns true if the backing texture is always opaque.
50 bool IsOpaque(); 51 bool IsOpaque();
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 scoped_ptr<PluginDelegate::PlatformContext3D> platform_context_; 90 scoped_ptr<PluginDelegate::PlatformContext3D> platform_context_;
90 base::WeakPtrFactory<PPB_Graphics3D_Impl> weak_ptr_factory_; 91 base::WeakPtrFactory<PPB_Graphics3D_Impl> weak_ptr_factory_;
91 92
92 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Impl); 93 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Impl);
93 }; 94 };
94 95
95 } // namespace ppapi 96 } // namespace ppapi
96 } // namespace webkit 97 } // namespace webkit
97 98
98 #endif // WEBKIT_PLUGINS_PPAPI_PPB_GRAPHICS_3D_IMPL_H_ 99 #endif // WEBKIT_PLUGINS_PPAPI_PPB_GRAPHICS_3D_IMPL_H_
OLDNEW
« no previous file with comments | « ppapi/thunk/ppb_graphics_3d_api.h ('k') | webkit/plugins/ppapi/ppb_graphics_3d_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698