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

Side by Side Diff: ppapi/shared_impl/graphics_3d_impl.h

Issue 7763007: Make PPB_GLESChromiumTextureMapping_Dev work with PPB_Graphics3D_Dev (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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 | « no previous file | ppapi/shared_impl/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) 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 PPAPI_SHARED_IMPL_GRAPHICS_3D_IMPL_H_ 5 #ifndef PPAPI_SHARED_IMPL_GRAPHICS_3D_IMPL_H_
6 #define PPAPI_SHARED_IMPL_GRAPHICS_3D_IMPL_H_ 6 #define PPAPI_SHARED_IMPL_GRAPHICS_3D_IMPL_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "ppapi/c/pp_completion_callback.h" 10 #include "ppapi/c/pp_completion_callback.h"
(...skipping 10 matching lines...) Expand all
21 21
22 namespace ppapi { 22 namespace ppapi {
23 23
24 class PPAPI_SHARED_EXPORT Graphics3DImpl : public thunk::PPB_Graphics3D_API { 24 class PPAPI_SHARED_EXPORT Graphics3DImpl : public thunk::PPB_Graphics3D_API {
25 public: 25 public:
26 // PPB_Graphics3D_API implementation. 26 // PPB_Graphics3D_API implementation.
27 virtual int32_t GetAttribs(int32_t* attrib_list) OVERRIDE; 27 virtual int32_t GetAttribs(int32_t* attrib_list) OVERRIDE;
28 virtual int32_t SetAttribs(int32_t* attrib_list) OVERRIDE; 28 virtual int32_t SetAttribs(int32_t* attrib_list) OVERRIDE;
29 virtual int32_t ResizeBuffers(int32_t width, int32_t height) OVERRIDE; 29 virtual int32_t ResizeBuffers(int32_t width, int32_t height) OVERRIDE;
30 virtual int32_t SwapBuffers(PP_CompletionCallback callback) OVERRIDE; 30 virtual int32_t SwapBuffers(PP_CompletionCallback callback) OVERRIDE;
31 virtual void* MapTexSubImage2DCHROMIUM(GLenum target,
32 GLint level,
33 GLint xoffset,
34 GLint yoffset,
35 GLsizei width,
36 GLsizei height,
37 GLenum format,
38 GLenum type,
39 GLenum access) OVERRIDE;
40 virtual void UnmapTexSubImage2DCHROMIUM(const void* mem) OVERRIDE;
31 41
32 gpu::gles2::GLES2Implementation* gles2_impl() { 42 gpu::gles2::GLES2Implementation* gles2_impl() {
33 return gles2_impl_.get(); 43 return gles2_impl_.get();
34 } 44 }
35 45
36 // Sends swap-buffers notification to the plugin. 46 // Sends swap-buffers notification to the plugin.
37 void SwapBuffersACK(int32_t pp_error); 47 void SwapBuffersACK(int32_t pp_error);
38 48
39 protected: 49 protected:
40 Graphics3DImpl(); 50 Graphics3DImpl();
(...skipping 15 matching lines...) Expand all
56 // Callback that needs to be executed when swap-buffers is completed. 66 // Callback that needs to be executed when swap-buffers is completed.
57 PP_CompletionCallback swap_callback_; 67 PP_CompletionCallback swap_callback_;
58 68
59 DISALLOW_COPY_AND_ASSIGN(Graphics3DImpl); 69 DISALLOW_COPY_AND_ASSIGN(Graphics3DImpl);
60 }; 70 };
61 71
62 } // namespace ppapi 72 } // namespace ppapi
63 73
64 #endif // PPAPI_SHARED_IMPL_GRAPHICS_3D_IMPL_H_ 74 #endif // PPAPI_SHARED_IMPL_GRAPHICS_3D_IMPL_H_
65 75
OLDNEW
« no previous file with comments | « no previous file | ppapi/shared_impl/graphics_3d_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698