OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef SERVICES_NATIVE_VIEWPORT_APP_H_ |
| 6 #define SERVICES_NATIVE_VIEWPORT_APP_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "mojo/common/tracing_impl.h" |
| 10 #include "mojo/public/cpp/application/application_impl_base.h" |
| 11 #include "services/gles2/gpu_state.h" |
| 12 |
| 13 namespace native_viewport { |
| 14 |
| 15 class NativeViewportApp : public mojo::ApplicationImplBase { |
| 16 public: |
| 17 NativeViewportApp(); |
| 18 ~NativeViewportApp() override; |
| 19 |
| 20 // mojo::ApplicationImplBase overrides. |
| 21 void OnInitialize() override; |
| 22 bool OnAcceptConnection( |
| 23 mojo::ServiceProviderImpl* service_provider_impl) override; |
| 24 |
| 25 private: |
| 26 void InitLogging(); |
| 27 |
| 28 scoped_refptr<gles2::GpuState> gpu_state_; |
| 29 bool is_headless_; |
| 30 mojo::TracingImpl tracing_; |
| 31 |
| 32 DISALLOW_COPY_AND_ASSIGN(NativeViewportApp); |
| 33 }; |
| 34 |
| 35 } // namespace native_viewport |
| 36 |
| 37 #endif // SERVICES_NATIVE_VIEWPORT_APP_H_ |
OLD | NEW |