| 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; | |
| 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 Loading... |
| 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 |
| OLD | NEW |