| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 public thunk::PPB_Graphics3D_API { | 33 public thunk::PPB_Graphics3D_API { |
| 34 public: | 34 public: |
| 35 // Resource overrides. | 35 // Resource overrides. |
| 36 thunk::PPB_Graphics3D_API* AsPPB_Graphics3D_API() override; | 36 thunk::PPB_Graphics3D_API* AsPPB_Graphics3D_API() override; |
| 37 | 37 |
| 38 // PPB_Graphics3D_API implementation. | 38 // PPB_Graphics3D_API implementation. |
| 39 int32_t GetAttribs(int32_t attrib_list[]) override; | 39 int32_t GetAttribs(int32_t attrib_list[]) override; |
| 40 int32_t SetAttribs(const int32_t attrib_list[]) override; | 40 int32_t SetAttribs(const int32_t attrib_list[]) override; |
| 41 int32_t GetError() override; | 41 int32_t GetError() override; |
| 42 int32_t ResizeBuffers(int32_t width, int32_t height) override; | 42 int32_t ResizeBuffers(int32_t width, int32_t height) override; |
| 43 int32_t SwapBuffers(scoped_refptr<TrackedCallback> callback, | 43 int32_t SwapBuffers(scoped_refptr<TrackedCallback> callback) override; |
| 44 const gpu::SyncToken& sync_token) override; | 44 int32_t SwapBuffersWithSyncToken(scoped_refptr<TrackedCallback> callback, |
| 45 const gpu::SyncToken& sync_token) override; |
| 45 int32_t GetAttribMaxValue(int32_t attribute, int32_t* value) override; | 46 int32_t GetAttribMaxValue(int32_t attribute, int32_t* value) override; |
| 46 | 47 |
| 47 void* MapTexSubImage2DCHROMIUM(GLenum target, | 48 void* MapTexSubImage2DCHROMIUM(GLenum target, |
| 48 GLint level, | 49 GLint level, |
| 49 GLint xoffset, | 50 GLint xoffset, |
| 50 GLint yoffset, | 51 GLint yoffset, |
| 51 GLsizei width, | 52 GLsizei width, |
| 52 GLsizei height, | 53 GLsizei height, |
| 53 GLenum format, | 54 GLenum format, |
| 54 GLenum type, | 55 GLenum type, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 83 | 84 |
| 84 // Callback that needs to be executed when swap-buffers is completed. | 85 // Callback that needs to be executed when swap-buffers is completed. |
| 85 scoped_refptr<TrackedCallback> swap_callback_; | 86 scoped_refptr<TrackedCallback> swap_callback_; |
| 86 | 87 |
| 87 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Shared); | 88 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Shared); |
| 88 }; | 89 }; |
| 89 | 90 |
| 90 } // namespace ppapi | 91 } // namespace ppapi |
| 91 | 92 |
| 92 #endif // PPAPI_SHARED_IMPL_GRAPHICS_3D_IMPL_H_ | 93 #endif // PPAPI_SHARED_IMPL_GRAPHICS_3D_IMPL_H_ |
| OLD | NEW |