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

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

Issue 16290005: Move Pepper to using mailboxes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 7 years, 6 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) 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 25 matching lines...) Expand all
36 virtual gpu::CommandBuffer::State FlushSync(int32_t put_offset) OVERRIDE; 36 virtual gpu::CommandBuffer::State FlushSync(int32_t put_offset) OVERRIDE;
37 virtual gpu::CommandBuffer::State FlushSyncFast( 37 virtual gpu::CommandBuffer::State FlushSyncFast(
38 int32_t put_offset, 38 int32_t put_offset,
39 int32_t last_known_get) OVERRIDE; 39 int32_t last_known_get) OVERRIDE;
40 virtual uint32_t InsertSyncPoint() OVERRIDE; 40 virtual uint32_t InsertSyncPoint() OVERRIDE;
41 41
42 // Binds/unbinds the graphics of this context with the associated instance. 42 // Binds/unbinds the graphics of this context with the associated instance.
43 // Returns true if binding/unbinding is successful. 43 // Returns true if binding/unbinding is successful.
44 bool BindToInstance(bool bind); 44 bool BindToInstance(bool bind);
45 45
46 // Returns the id of texture that can be used by the compositor.
47 unsigned int GetBackingTextureId();
48
49 // Returns true if the backing texture is always opaque. 46 // Returns true if the backing texture is always opaque.
50 bool IsOpaque(); 47 bool IsOpaque();
51 48
52 // Notifications about the view's progress painting. See PluginInstance. 49 // Notifications about the view's progress painting. See PluginInstance.
53 // These messages are used to send Flush callbacks to the plugin. 50 // These messages are used to send Flush callbacks to the plugin.
54 void ViewWillInitiatePaint(); 51 void ViewWillInitiatePaint();
55 void ViewInitiatedPaint(); 52 void ViewInitiatedPaint();
56 void ViewFlushedPaint(); 53 void ViewFlushedPaint();
57 54
58 PluginDelegate::PlatformContext3D* platform_context() { 55 PluginDelegate::PlatformContext3D* platform_context() {
(...skipping 30 matching lines...) Expand all
89 scoped_ptr<PluginDelegate::PlatformContext3D> platform_context_; 86 scoped_ptr<PluginDelegate::PlatformContext3D> platform_context_;
90 base::WeakPtrFactory<PPB_Graphics3D_Impl> weak_ptr_factory_; 87 base::WeakPtrFactory<PPB_Graphics3D_Impl> weak_ptr_factory_;
91 88
92 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Impl); 89 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Impl);
93 }; 90 };
94 91
95 } // namespace ppapi 92 } // namespace ppapi
96 } // namespace webkit 93 } // namespace webkit
97 94
98 #endif // WEBKIT_PLUGINS_PPAPI_PPB_GRAPHICS_3D_IMPL_H_ 95 #endif // WEBKIT_PLUGINS_PPAPI_PPB_GRAPHICS_3D_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/ppapi_plugin_instance.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