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

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

Issue 7765011: Allow both Context3D and Graphics3D with the video decoder (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: context3d_id -> graphics_context Created 9 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 | Annotate | Revision Log
« no previous file with comments | « ppapi/shared_impl/video_decoder_impl.cc ('k') | webkit/plugins/ppapi/ppb_video_decoder_impl.h » ('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) 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/scoped_callback_factory.h" 8 #include "base/memory/scoped_callback_factory.h"
9 #include "ppapi/shared_impl/graphics_3d_impl.h" 9 #include "ppapi/shared_impl/graphics_3d_impl.h"
10 #include "ppapi/shared_impl/resource.h" 10 #include "ppapi/shared_impl/resource.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 // Returns the id of texture that can be used by the compositor. 51 // Returns the id of texture that can be used by the compositor.
52 unsigned int GetBackingTextureId(); 52 unsigned int GetBackingTextureId();
53 53
54 // Notifications that the view has rendered the page and that it has been 54 // Notifications that the view has rendered the page and that it has been
55 // flushed to the screen. These messages are used to send Flush callbacks to 55 // flushed to the screen. These messages are used to send Flush callbacks to
56 // the plugin. 56 // the plugin.
57 void ViewInitiatedPaint(); 57 void ViewInitiatedPaint();
58 void ViewFlushedPaint(); 58 void ViewFlushedPaint();
59 59
60 PluginDelegate::PlatformContext3D* platform_context() {
61 return platform_context_.get();
62 }
63
60 protected: 64 protected:
61 // ppapi::Graphics3DImpl overrides. 65 // ppapi::Graphics3DImpl overrides.
62 virtual gpu::CommandBuffer* GetCommandBuffer() OVERRIDE; 66 virtual gpu::CommandBuffer* GetCommandBuffer() OVERRIDE;
63 virtual int32 DoSwapBuffers() OVERRIDE; 67 virtual int32 DoSwapBuffers() OVERRIDE;
64 68
65 private: 69 private:
66 explicit PPB_Graphics3D_Impl(PP_Instance instance); 70 explicit PPB_Graphics3D_Impl(PP_Instance instance);
67 71
68 bool Init(PP_Resource share_context, 72 bool Init(PP_Resource share_context,
69 const int32_t* attrib_list); 73 const int32_t* attrib_list);
(...skipping 14 matching lines...) Expand all
84 scoped_ptr<PluginDelegate::PlatformContext3D> platform_context_; 88 scoped_ptr<PluginDelegate::PlatformContext3D> platform_context_;
85 base::ScopedCallbackFactory<PPB_Graphics3D_Impl> callback_factory_; 89 base::ScopedCallbackFactory<PPB_Graphics3D_Impl> callback_factory_;
86 90
87 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Impl); 91 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Impl);
88 }; 92 };
89 93
90 } // namespace ppapi 94 } // namespace ppapi
91 } // namespace webkit 95 } // namespace webkit
92 96
93 #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 | « ppapi/shared_impl/video_decoder_impl.cc ('k') | webkit/plugins/ppapi/ppb_video_decoder_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698