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 "services/native_viewport/native_viewport_impl.h" | 5 #include "services/native_viewport/native_viewport_impl.h" |
6 | 6 |
7 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
11 #include "base/time/time.h" | 11 #include "base/time/time.h" |
12 #include "mojo/converters/geometry/geometry_type_converters.h" | 12 #include "mojo/converters/geometry/geometry_type_converters.h" |
13 #include "mojo/converters/native_viewport/surface_configuration_type_converters.
h" | 13 #include "mojo/converters/native_viewport/surface_configuration_type_converters.
h" |
14 #include "mojo/public/cpp/application/application_impl.h" | 14 #include "mojo/public/cpp/application/application_impl.h" |
15 #include "mojo/public/cpp/application/interface_factory.h" | |
16 #include "services/gles2/gpu_state.h" | 15 #include "services/gles2/gpu_state.h" |
17 #include "services/native_viewport/platform_viewport_headless.h" | 16 #include "services/native_viewport/platform_viewport_headless.h" |
18 #include "ui/events/event.h" | 17 #include "ui/events/event.h" |
19 #include "ui/gl/gl_surface.h" | 18 #include "ui/gl/gl_surface.h" |
20 | 19 |
21 namespace native_viewport { | 20 namespace native_viewport { |
22 | 21 |
23 NativeViewportImpl::NativeViewportImpl( | 22 NativeViewportImpl::NativeViewportImpl( |
24 mojo::ApplicationImpl* application, | 23 mojo::ApplicationImpl* application, |
25 bool is_headless, | 24 bool is_headless, |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 | 159 |
161 void NativeViewportImpl::OnDestroyed() { | 160 void NativeViewportImpl::OnDestroyed() { |
162 delete this; | 161 delete this; |
163 } | 162 } |
164 | 163 |
165 void NativeViewportImpl::AckEvent(int32 pointer_id) { | 164 void NativeViewportImpl::AckEvent(int32 pointer_id) { |
166 pointers_waiting_on_ack_.erase(pointer_id); | 165 pointers_waiting_on_ack_.erase(pointer_id); |
167 } | 166 } |
168 | 167 |
169 } // namespace native_viewport | 168 } // namespace native_viewport |
OLD | NEW |