OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/html_viewer/web_graphics_context_3d_command_buffer_impl.h" | 5 #include "components/html_viewer/web_graphics_context_3d_command_buffer_impl.h" |
6 | 6 |
| 7 #include <stdint.h> |
| 8 |
7 #include "components/html_viewer/blink_basic_type_converters.h" | 9 #include "components/html_viewer/blink_basic_type_converters.h" |
8 #include "components/html_viewer/global_state.h" | 10 #include "components/html_viewer/global_state.h" |
9 #include "components/mus/public/cpp/context_provider.h" | 11 #include "components/mus/public/cpp/context_provider.h" |
10 #include "components/mus/public/interfaces/gpu.mojom.h" | 12 #include "components/mus/public/interfaces/gpu.mojom.h" |
11 #include "gpu/command_buffer/common/gles2_cmd_utils.h" | 13 #include "gpu/command_buffer/common/gles2_cmd_utils.h" |
12 #include "mojo/application/public/cpp/application_impl.h" | 14 #include "mojo/application/public/cpp/application_impl.h" |
13 #include "mojo/gles2/gles2_context.h" | 15 #include "mojo/gles2/gles2_context.h" |
14 #include "mojo/gpu/mojo_gles2_impl_autogen.h" | 16 #include "mojo/gpu/mojo_gles2_impl_autogen.h" |
15 #include "mojo/public/cpp/environment/environment.h" | 17 #include "mojo/public/cpp/environment/environment.h" |
16 #include "mojo/public/cpp/system/message_pipe.h" | 18 #include "mojo/public/cpp/system/message_pipe.h" |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 if (gles2_context_) | 71 if (gles2_context_) |
70 MojoGLES2DestroyContext(gles2_context_); | 72 MojoGLES2DestroyContext(gles2_context_); |
71 } | 73 } |
72 | 74 |
73 void WebGraphicsContext3DCommandBufferImpl::ContextLost() { | 75 void WebGraphicsContext3DCommandBufferImpl::ContextLost() { |
74 if (context_lost_callback_) | 76 if (context_lost_callback_) |
75 context_lost_callback_->onContextLost(); | 77 context_lost_callback_->onContextLost(); |
76 } | 78 } |
77 | 79 |
78 } // namespace html_viewer | 80 } // namespace html_viewer |
OLD | NEW |