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

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

Issue 9580030: Inform webkit when PPAPI plugin contents are opaque. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
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 28 matching lines...) Expand all
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 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. 46 // Returns the id of texture that can be used by the compositor.
47 unsigned int GetBackingTextureId(); 47 unsigned int GetBackingTextureId();
48 48
49 // Returns true if the backing texture is always opaque.
50 bool IsOpaque();
51
49 // Notifications about the view's progress painting. See PluginInstance. 52 // Notifications about the view's progress painting. See PluginInstance.
50 // These messages are used to send Flush callbacks to the plugin. 53 // These messages are used to send Flush callbacks to the plugin.
51 void ViewWillInitiatePaint(); 54 void ViewWillInitiatePaint();
52 void ViewInitiatedPaint(); 55 void ViewInitiatedPaint();
53 void ViewFlushedPaint(); 56 void ViewFlushedPaint();
54 57
55 PluginDelegate::PlatformContext3D* platform_context() { 58 PluginDelegate::PlatformContext3D* platform_context() {
56 return platform_context_.get(); 59 return platform_context_.get();
57 } 60 }
58 61
(...skipping 24 matching lines...) Expand all
83 scoped_ptr<PluginDelegate::PlatformContext3D> platform_context_; 86 scoped_ptr<PluginDelegate::PlatformContext3D> platform_context_;
84 base::WeakPtrFactory<PPB_Graphics3D_Impl> weak_ptr_factory_; 87 base::WeakPtrFactory<PPB_Graphics3D_Impl> weak_ptr_factory_;
85 88
86 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Impl); 89 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Impl);
87 }; 90 };
88 91
89 } // namespace ppapi 92 } // namespace ppapi
90 } // namespace webkit 93 } // namespace webkit
91 94
92 #endif // WEBKIT_PLUGINS_PPAPI_PPB_GRAPHICS_3D_IMPL_H_ 95 #endif // WEBKIT_PLUGINS_PPAPI_PPB_GRAPHICS_3D_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698