| 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/gles2/gles2.h" | 10 #include "mojo/public/c/gles2/gles2.h" |
| 11 #include "ppapi/c/pp_errors.h" | 11 #include "ppapi/c/pp_errors.h" |
| 12 | 12 |
| 13 namespace mojo { | 13 namespace mojo { |
| 14 namespace examples { | 14 namespace examples { |
| 15 | 15 |
| 16 namespace { | 16 namespace { |
| 17 | 17 |
| 18 gpu::CommandBuffer::State GetErrorState() { | 18 gpu::CommandBuffer::State GetErrorState() { |
| 19 gpu::CommandBuffer::State error_state; | 19 gpu::CommandBuffer::State error_state; |
| 20 error_state.error = gpu::error::kGenericError; | 20 error_state.error = gpu::error::kGenericError; |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 | 161 |
| 162 void Graphics3DResource::ContextLost() { | 162 void Graphics3DResource::ContextLost() { |
| 163 PluginInstance* plugin_instance = | 163 PluginInstance* plugin_instance = |
| 164 MojoPpapiGlobals::Get()->GetInstance(pp_instance()); | 164 MojoPpapiGlobals::Get()->GetInstance(pp_instance()); |
| 165 if (plugin_instance) | 165 if (plugin_instance) |
| 166 plugin_instance->Graphics3DContextLost(); | 166 plugin_instance->Graphics3DContextLost(); |
| 167 } | 167 } |
| 168 | 168 |
| 169 } // namespace examples | 169 } // namespace examples |
| 170 } // namespace mojo | 170 } // namespace mojo |
| OLD | NEW |