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 17 matching lines...) Expand all Loading... |
28 | 28 |
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; | |
39 virtual scoped_refptr<gpu::Buffer> CreateTransferBuffer(uint32_t size, | 38 virtual scoped_refptr<gpu::Buffer> CreateTransferBuffer(uint32_t size, |
40 int32* id) OVERRIDE; | 39 int32* id) OVERRIDE; |
41 virtual PP_Bool DestroyTransferBuffer(int32_t id) OVERRIDE; | 40 virtual PP_Bool DestroyTransferBuffer(int32_t id) OVERRIDE; |
42 virtual PP_Bool Flush(int32_t put_offset) OVERRIDE; | 41 virtual PP_Bool Flush(int32_t put_offset) OVERRIDE; |
43 virtual gpu::CommandBuffer::State WaitForTokenInRange(int32_t start, | 42 virtual gpu::CommandBuffer::State WaitForTokenInRange(int32_t start, |
44 int32_t end) OVERRIDE; | 43 int32_t end) OVERRIDE; |
45 virtual gpu::CommandBuffer::State WaitForGetOffsetInRange( | 44 virtual gpu::CommandBuffer::State WaitForGetOffsetInRange( |
46 int32_t start, int32_t end) OVERRIDE; | 45 int32_t start, int32_t end) OVERRIDE; |
47 virtual void* MapTexSubImage2DCHROMIUM(GLenum target, | 46 virtual void* MapTexSubImage2DCHROMIUM(GLenum target, |
48 GLint level, | 47 GLint level, |
(...skipping 15 matching lines...) Expand all Loading... |
64 void ContextLost(); | 63 void ContextLost(); |
65 | 64 |
66 MojoGLES2Context context_; | 65 MojoGLES2Context context_; |
67 DISALLOW_COPY_AND_ASSIGN(Graphics3DResource); | 66 DISALLOW_COPY_AND_ASSIGN(Graphics3DResource); |
68 }; | 67 }; |
69 | 68 |
70 } // namespace examples | 69 } // namespace examples |
71 } // namespace mojo | 70 } // namespace mojo |
72 | 71 |
73 #endif // MOJO_EXAMPLES_PEPPER_CONTAINER_APP_GRAPHICS_3D_RESOURCE_H_ | 72 #endif // MOJO_EXAMPLES_PEPPER_CONTAINER_APP_GRAPHICS_3D_RESOURCE_H_ |
OLD | NEW |