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_THUNK_PPB_GRAPHICS_3D_API_H_ | 5 #ifndef PPAPI_THUNK_PPB_GRAPHICS_3D_API_H_ |
6 #define PPAPI_THUNK_PPB_GRAPHICS_3D_API_H_ | 6 #define PPAPI_THUNK_PPB_GRAPHICS_3D_API_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 virtual ~PPB_Graphics3D_API() {} | 28 virtual ~PPB_Graphics3D_API() {} |
29 | 29 |
30 // Graphics3D API. | 30 // Graphics3D API. |
31 virtual int32_t GetAttribs(int32_t attrib_list[]) = 0; | 31 virtual int32_t GetAttribs(int32_t attrib_list[]) = 0; |
32 virtual int32_t SetAttribs(const int32_t attrib_list[]) = 0; | 32 virtual int32_t SetAttribs(const int32_t attrib_list[]) = 0; |
33 virtual int32_t GetError() = 0; | 33 virtual int32_t GetError() = 0; |
34 virtual int32_t ResizeBuffers(int32_t width, int32_t height) = 0; | 34 virtual int32_t ResizeBuffers(int32_t width, int32_t height) = 0; |
35 virtual int32_t SwapBuffers(scoped_refptr<TrackedCallback> callback) = 0; | 35 virtual int32_t SwapBuffers(scoped_refptr<TrackedCallback> callback) = 0; |
36 virtual int32_t SwapBuffersWithSyncToken( | 36 virtual int32_t SwapBuffersWithSyncToken( |
37 scoped_refptr<TrackedCallback> callback, | 37 scoped_refptr<TrackedCallback> callback, |
38 const gpu::SyncToken& sync_token) = 0; | 38 const gpu::SyncToken& sync_token, |
| 39 int32_t width, |
| 40 int32_t height) = 0; |
39 virtual int32_t GetAttribMaxValue(int32_t attribute, int32_t* value) = 0; | 41 virtual int32_t GetAttribMaxValue(int32_t attribute, int32_t* value) = 0; |
40 | 42 |
41 // Graphics3DTrusted API. | 43 // Graphics3DTrusted API. |
42 virtual PP_Bool SetGetBuffer(int32_t shm_id) = 0; | 44 virtual PP_Bool SetGetBuffer(int32_t shm_id) = 0; |
43 virtual scoped_refptr<gpu::Buffer> CreateTransferBuffer(uint32_t size, | 45 virtual scoped_refptr<gpu::Buffer> CreateTransferBuffer(uint32_t size, |
44 int32_t* id) = 0; | 46 int32_t* id) = 0; |
45 virtual PP_Bool DestroyTransferBuffer(int32_t id) = 0; | 47 virtual PP_Bool DestroyTransferBuffer(int32_t id) = 0; |
46 virtual PP_Bool Flush(int32_t put_offset) = 0; | 48 virtual PP_Bool Flush(int32_t put_offset) = 0; |
47 virtual gpu::CommandBuffer::State WaitForTokenInRange(int32_t start, | 49 virtual gpu::CommandBuffer::State WaitForTokenInRange(int32_t start, |
48 int32_t end) = 0; | 50 int32_t end) = 0; |
(...skipping 13 matching lines...) Expand all Loading... |
62 virtual void UnmapTexSubImage2DCHROMIUM(const void* mem) = 0; | 64 virtual void UnmapTexSubImage2DCHROMIUM(const void* mem) = 0; |
63 | 65 |
64 virtual void EnsureWorkVisible() = 0; | 66 virtual void EnsureWorkVisible() = 0; |
65 virtual void TakeFrontBuffer() = 0; | 67 virtual void TakeFrontBuffer() = 0; |
66 }; | 68 }; |
67 | 69 |
68 } // namespace thunk | 70 } // namespace thunk |
69 } // namespace ppapi | 71 } // namespace ppapi |
70 | 72 |
71 #endif // PPAPI_THUNK_PPB_GRAPHICS_3D_API_H_ | 73 #endif // PPAPI_THUNK_PPB_GRAPHICS_3D_API_H_ |
OLD | NEW |