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

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

Issue 9420017: Add Pepper support for several GL extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix build_gles2_cmd_buffer Created 8 years, 10 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/proxy/interface_list.cc ('k') | ppapi/shared_impl/ppb_graphics_3d_shared.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) 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 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 19 matching lines...) Expand all
30 public: 30 public:
31 // Resource overrides. 31 // Resource overrides.
32 virtual thunk::PPB_Graphics3D_API* AsPPB_Graphics3D_API() OVERRIDE; 32 virtual thunk::PPB_Graphics3D_API* AsPPB_Graphics3D_API() OVERRIDE;
33 33
34 // PPB_Graphics3D_API implementation. 34 // PPB_Graphics3D_API implementation.
35 virtual int32_t GetAttribs(int32_t attrib_list[]) OVERRIDE; 35 virtual int32_t GetAttribs(int32_t attrib_list[]) OVERRIDE;
36 virtual int32_t SetAttribs(const int32_t attrib_list[]) OVERRIDE; 36 virtual int32_t SetAttribs(const int32_t attrib_list[]) OVERRIDE;
37 virtual int32_t GetError() OVERRIDE; 37 virtual int32_t GetError() OVERRIDE;
38 virtual int32_t ResizeBuffers(int32_t width, int32_t height) OVERRIDE; 38 virtual int32_t ResizeBuffers(int32_t width, int32_t height) OVERRIDE;
39 virtual int32_t SwapBuffers(PP_CompletionCallback callback) OVERRIDE; 39 virtual int32_t SwapBuffers(PP_CompletionCallback callback) OVERRIDE;
40 virtual void* MapTexSubImage2DCHROMIUM(GLenum target,
41 GLint level,
42 GLint xoffset,
43 GLint yoffset,
44 GLsizei width,
45 GLsizei height,
46 GLenum format,
47 GLenum type,
48 GLenum access) OVERRIDE;
49 virtual void UnmapTexSubImage2DCHROMIUM(const void* mem) OVERRIDE;
50 40
51 gpu::gles2::GLES2Implementation* gles2_impl() { 41 gpu::gles2::GLES2Implementation* gles2_impl() {
52 return gles2_impl_.get(); 42 return gles2_impl_.get();
53 } 43 }
54 44
55 // Sends swap-buffers notification to the plugin. 45 // Sends swap-buffers notification to the plugin.
56 void SwapBuffersACK(int32_t pp_error); 46 void SwapBuffersACK(int32_t pp_error);
57 47
58 protected: 48 protected:
59 PPB_Graphics3D_Shared(PP_Instance instance); 49 PPB_Graphics3D_Shared(PP_Instance instance);
(...skipping 16 matching lines...) Expand all
76 // Callback that needs to be executed when swap-buffers is completed. 66 // Callback that needs to be executed when swap-buffers is completed.
77 scoped_refptr<TrackedCallback> swap_callback_; 67 scoped_refptr<TrackedCallback> swap_callback_;
78 68
79 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Shared); 69 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Shared);
80 }; 70 };
81 71
82 } // namespace ppapi 72 } // namespace ppapi
83 73
84 #endif // PPAPI_SHARED_IMPL_GRAPHICS_3D_IMPL_H_ 74 #endif // PPAPI_SHARED_IMPL_GRAPHICS_3D_IMPL_H_
85 75
OLDNEW
« no previous file with comments | « ppapi/proxy/interface_list.cc ('k') | ppapi/shared_impl/ppb_graphics_3d_shared.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698