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 #include "mojo/examples/pepper_container_app/graphics_3d_resource.h" | 5 #include "mojo/examples/pepper_container_app/graphics_3d_resource.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "mojo/examples/pepper_container_app/mojo_ppapi_globals.h" | 8 #include "mojo/examples/pepper_container_app/mojo_ppapi_globals.h" |
9 #include "mojo/examples/pepper_container_app/plugin_instance.h" | 9 #include "mojo/examples/pepper_container_app/plugin_instance.h" |
10 #include "mojo/public/c/gles2/gles2.h" | 10 #include "mojo/public/c/gles2/gles2.h" |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 int32_t* value) { | 79 int32_t* value) { |
80 NOTIMPLEMENTED(); | 80 NOTIMPLEMENTED(); |
81 return PP_ERROR_FAILED; | 81 return PP_ERROR_FAILED; |
82 } | 82 } |
83 | 83 |
84 PP_Bool Graphics3DResource::SetGetBuffer(int32_t shm_id) { | 84 PP_Bool Graphics3DResource::SetGetBuffer(int32_t shm_id) { |
85 NOTIMPLEMENTED(); | 85 NOTIMPLEMENTED(); |
86 return PP_FALSE; | 86 return PP_FALSE; |
87 } | 87 } |
88 | 88 |
89 gpu::CommandBuffer::State Graphics3DResource::GetState() { | |
90 NOTIMPLEMENTED(); | |
91 return GetErrorState(); | |
92 } | |
93 | |
94 scoped_refptr<gpu::Buffer> Graphics3DResource::CreateTransferBuffer( | 89 scoped_refptr<gpu::Buffer> Graphics3DResource::CreateTransferBuffer( |
95 uint32_t size, | 90 uint32_t size, |
96 int32* id) { | 91 int32* id) { |
97 NOTIMPLEMENTED(); | 92 NOTIMPLEMENTED(); |
98 return NULL; | 93 return NULL; |
99 } | 94 } |
100 | 95 |
101 PP_Bool Graphics3DResource::DestroyTransferBuffer(int32_t id) { | 96 PP_Bool Graphics3DResource::DestroyTransferBuffer(int32_t id) { |
102 NOTIMPLEMENTED(); | 97 NOTIMPLEMENTED(); |
103 return PP_FALSE; | 98 return PP_FALSE; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 | 151 |
157 void Graphics3DResource::ContextLost() { | 152 void Graphics3DResource::ContextLost() { |
158 PluginInstance* plugin_instance = | 153 PluginInstance* plugin_instance = |
159 MojoPpapiGlobals::Get()->GetInstance(pp_instance()); | 154 MojoPpapiGlobals::Get()->GetInstance(pp_instance()); |
160 if (plugin_instance) | 155 if (plugin_instance) |
161 plugin_instance->Graphics3DContextLost(); | 156 plugin_instance->Graphics3DContextLost(); |
162 } | 157 } |
163 | 158 |
164 } // namespace examples | 159 } // namespace examples |
165 } // namespace mojo | 160 } // namespace mojo |
OLD | NEW |