OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 MOJO_EXAMPLES_PEPPER_CONTAINER_APP_GRAPHICS_3D_RESOURCE_H_ | 5 #ifndef MOJO_EXAMPLES_PEPPER_CONTAINER_APP_GRAPHICS_3D_RESOURCE_H_ |
6 #define MOJO_EXAMPLES_PEPPER_CONTAINER_APP_GRAPHICS_3D_RESOURCE_H_ | 6 #define MOJO_EXAMPLES_PEPPER_CONTAINER_APP_GRAPHICS_3D_RESOURCE_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "mojo/public/c/gles2/gles2_types.h" | 10 #include "mojo/public/c/gles2/gles2_types.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 // ppapi::thunk::PPB_Graphics3D_API implementation. | 29 // ppapi::thunk::PPB_Graphics3D_API implementation. |
30 virtual int32_t GetAttribs(int32_t attrib_list[]) OVERRIDE; | 30 virtual int32_t GetAttribs(int32_t attrib_list[]) OVERRIDE; |
31 virtual int32_t SetAttribs(const int32_t attrib_list[]) OVERRIDE; | 31 virtual int32_t SetAttribs(const int32_t attrib_list[]) OVERRIDE; |
32 virtual int32_t GetError() OVERRIDE; | 32 virtual int32_t GetError() OVERRIDE; |
33 virtual int32_t ResizeBuffers(int32_t width, int32_t height) OVERRIDE; | 33 virtual int32_t ResizeBuffers(int32_t width, int32_t height) OVERRIDE; |
34 virtual int32_t SwapBuffers( | 34 virtual int32_t SwapBuffers( |
35 scoped_refptr<ppapi::TrackedCallback> callback) OVERRIDE; | 35 scoped_refptr<ppapi::TrackedCallback> callback) OVERRIDE; |
36 virtual int32_t GetAttribMaxValue(int32_t attribute, int32_t* value) OVERRIDE; | 36 virtual int32_t GetAttribMaxValue(int32_t attribute, int32_t* value) OVERRIDE; |
37 virtual PP_Bool SetGetBuffer(int32_t shm_id) OVERRIDE; | 37 virtual PP_Bool SetGetBuffer(int32_t shm_id) OVERRIDE; |
38 virtual gpu::CommandBuffer::State GetState() OVERRIDE; | 38 virtual gpu::CommandBuffer::State GetState() OVERRIDE; |
39 virtual int32_t CreateTransferBuffer(uint32_t size) OVERRIDE; | 39 virtual scoped_refptr<gpu::Buffer> CreateTransferBuffer(uint32_t size, |
| 40 int32* id) OVERRIDE; |
40 virtual PP_Bool DestroyTransferBuffer(int32_t id) OVERRIDE; | 41 virtual PP_Bool DestroyTransferBuffer(int32_t id) OVERRIDE; |
41 virtual PP_Bool GetTransferBuffer(int32_t id, | |
42 int* shm_handle, | |
43 uint32_t* shm_size) OVERRIDE; | |
44 virtual PP_Bool Flush(int32_t put_offset) OVERRIDE; | 42 virtual PP_Bool Flush(int32_t put_offset) OVERRIDE; |
45 virtual gpu::CommandBuffer::State WaitForTokenInRange(int32_t start, | 43 virtual gpu::CommandBuffer::State WaitForTokenInRange(int32_t start, |
46 int32_t end) OVERRIDE; | 44 int32_t end) OVERRIDE; |
47 virtual gpu::CommandBuffer::State WaitForGetOffsetInRange( | 45 virtual gpu::CommandBuffer::State WaitForGetOffsetInRange( |
48 int32_t start, int32_t end) OVERRIDE; | 46 int32_t start, int32_t end) OVERRIDE; |
49 virtual void* MapTexSubImage2DCHROMIUM(GLenum target, | 47 virtual void* MapTexSubImage2DCHROMIUM(GLenum target, |
50 GLint level, | 48 GLint level, |
51 GLint xoffset, | 49 GLint xoffset, |
52 GLint yoffset, | 50 GLint yoffset, |
53 GLsizei width, | 51 GLsizei width, |
(...skipping 12 matching lines...) Expand all Loading... |
66 void ContextLost(); | 64 void ContextLost(); |
67 | 65 |
68 MojoGLES2Context context_; | 66 MojoGLES2Context context_; |
69 DISALLOW_COPY_AND_ASSIGN(Graphics3DResource); | 67 DISALLOW_COPY_AND_ASSIGN(Graphics3DResource); |
70 }; | 68 }; |
71 | 69 |
72 } // namespace examples | 70 } // namespace examples |
73 } // namespace mojo | 71 } // namespace mojo |
74 | 72 |
75 #endif // MOJO_EXAMPLES_PEPPER_CONTAINER_APP_GRAPHICS_3D_RESOURCE_H_ | 73 #endif // MOJO_EXAMPLES_PEPPER_CONTAINER_APP_GRAPHICS_3D_RESOURCE_H_ |
OLD | NEW |