OLD | NEW |
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 Loading... |
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; |
40 | 50 |
41 gpu::gles2::GLES2Implementation* gles2_impl() { | 51 gpu::gles2::GLES2Implementation* gles2_impl() { |
42 return gles2_impl_.get(); | 52 return gles2_impl_.get(); |
43 } | 53 } |
44 | 54 |
45 // Sends swap-buffers notification to the plugin. | 55 // Sends swap-buffers notification to the plugin. |
46 void SwapBuffersACK(int32_t pp_error); | 56 void SwapBuffersACK(int32_t pp_error); |
47 | 57 |
48 protected: | 58 protected: |
49 PPB_Graphics3D_Shared(PP_Instance instance); | 59 PPB_Graphics3D_Shared(PP_Instance instance); |
(...skipping 16 matching lines...) Expand all Loading... |
66 // Callback that needs to be executed when swap-buffers is completed. | 76 // Callback that needs to be executed when swap-buffers is completed. |
67 scoped_refptr<TrackedCallback> swap_callback_; | 77 scoped_refptr<TrackedCallback> swap_callback_; |
68 | 78 |
69 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Shared); | 79 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Shared); |
70 }; | 80 }; |
71 | 81 |
72 } // namespace ppapi | 82 } // namespace ppapi |
73 | 83 |
74 #endif // PPAPI_SHARED_IMPL_GRAPHICS_3D_IMPL_H_ | 84 #endif // PPAPI_SHARED_IMPL_GRAPHICS_3D_IMPL_H_ |
75 | 85 |
OLD | NEW |