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

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

Issue 7409003: Binding Graphics3D with Instance and OpenGLES2 interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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) 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_CONTEXT_3D_IMPL_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_CONTEXT_3D_IMPL_H_
6 #define WEBKIT_PLUGINS_PPAPI_PPB_CONTEXT_3D_IMPL_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PPB_CONTEXT_3D_IMPL_H_
7 7
8 #include "base/memory/scoped_callback_factory.h" 8 #include "base/memory/scoped_callback_factory.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "ppapi/thunk/ppb_context_3d_api.h" 10 #include "ppapi/thunk/ppb_context_3d_api.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 virtual void* MapTexSubImage2DCHROMIUM(GLenum target, 65 virtual void* MapTexSubImage2DCHROMIUM(GLenum target,
66 GLint level, 66 GLint level,
67 GLint xoffset, 67 GLint xoffset,
68 GLint yoffset, 68 GLint yoffset,
69 GLsizei width, 69 GLsizei width,
70 GLsizei height, 70 GLsizei height,
71 GLenum format, 71 GLenum format,
72 GLenum type, 72 GLenum type,
73 GLenum access) OVERRIDE; 73 GLenum access) OVERRIDE;
74 virtual void UnmapTexSubImage2DCHROMIUM(const void* mem) OVERRIDE; 74 virtual void UnmapTexSubImage2DCHROMIUM(const void* mem) OVERRIDE;
75 virtual gpu::gles2::GLES2Implementation* GetGLES2Impl() OVERRIDE;
75 76
76 int32_t BindSurfacesImpl(PPB_Surface3D_Impl* draw, PPB_Surface3D_Impl* read); 77 int32_t BindSurfacesImpl(PPB_Surface3D_Impl* draw, PPB_Surface3D_Impl* read);
77 78
78 gpu::gles2::GLES2Implementation* gles2_impl() { 79 gpu::gles2::GLES2Implementation* gles2_impl() {
79 return gles2_impl_.get(); 80 return gles2_impl_.get();
80 } 81 }
81 82
82 // Possibly NULL if initialization fails. 83 // Possibly NULL if initialization fails.
83 PluginDelegate::PlatformContext3D* platform_context() { 84 PluginDelegate::PlatformContext3D* platform_context() {
84 return platform_context_.get(); 85 return platform_context_.get();
(...skipping 29 matching lines...) Expand all
114 115
115 base::ScopedCallbackFactory<PPB_Context3D_Impl> callback_factory_; 116 base::ScopedCallbackFactory<PPB_Context3D_Impl> callback_factory_;
116 117
117 DISALLOW_COPY_AND_ASSIGN(PPB_Context3D_Impl); 118 DISALLOW_COPY_AND_ASSIGN(PPB_Context3D_Impl);
118 }; 119 };
119 120
120 } // namespace ppapi 121 } // namespace ppapi
121 } // namespace webkit 122 } // namespace webkit
122 123
123 #endif // WEBKIT_PLUGINS_PPAPI_PPB_CONTEXT_3D_IMPL_H_ 124 #endif // WEBKIT_PLUGINS_PPAPI_PPB_CONTEXT_3D_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/ppapi_plugin_instance.cc ('k') | webkit/plugins/ppapi/ppb_context_3d_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698