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 18 matching lines...) Expand all Loading... |
29 public thunk::PPB_Graphics3D_API { | 29 public thunk::PPB_Graphics3D_API { |
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(scoped_refptr<TrackedCallback> callback) OVERRIDE; |
40 virtual void* MapTexSubImage2DCHROMIUM(GLenum target, | 40 virtual void* MapTexSubImage2DCHROMIUM(GLenum target, |
41 GLint level, | 41 GLint level, |
42 GLint xoffset, | 42 GLint xoffset, |
43 GLint yoffset, | 43 GLint yoffset, |
44 GLsizei width, | 44 GLsizei width, |
45 GLsizei height, | 45 GLsizei height, |
46 GLenum format, | 46 GLenum format, |
47 GLenum type, | 47 GLenum type, |
48 GLenum access) OVERRIDE; | 48 GLenum access) OVERRIDE; |
49 virtual void UnmapTexSubImage2DCHROMIUM(const void* mem) OVERRIDE; | 49 virtual void UnmapTexSubImage2DCHROMIUM(const void* mem) OVERRIDE; |
(...skipping 27 matching lines...) Expand all Loading... |
77 // Callback that needs to be executed when swap-buffers is completed. | 77 // Callback that needs to be executed when swap-buffers is completed. |
78 scoped_refptr<TrackedCallback> swap_callback_; | 78 scoped_refptr<TrackedCallback> swap_callback_; |
79 | 79 |
80 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Shared); | 80 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Shared); |
81 }; | 81 }; |
82 | 82 |
83 } // namespace ppapi | 83 } // namespace ppapi |
84 | 84 |
85 #endif // PPAPI_SHARED_IMPL_GRAPHICS_3D_IMPL_H_ | 85 #endif // PPAPI_SHARED_IMPL_GRAPHICS_3D_IMPL_H_ |
86 | 86 |
OLD | NEW |