Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef UI_OZONE_PLATFORM_DRM_MOJO_DRM_GPU_IMPL_H_ | |
| 6 #define UI_OZONE_PLATFORM_DRM_MOJO_DRM_GPU_IMPL_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "mojo/public/cpp/bindings/strong_binding.h" | |
| 10 #include "mojo/services/ozone_drm_gpu/public/interfaces/ozone_drm_gpu.mojom.h" | |
| 11 #include "ui/ozone/platform/drm/gpu/drm_gpu_platform_support.h" | |
| 12 | |
| 13 namespace ui { | |
| 14 | |
| 15 class MojoDrmGpuImpl : public mojo::OzoneDrmGpu { | |
| 16 public: | |
| 17 MojoDrmGpuImpl(mojo::InterfaceRequest<mojo::OzoneDrmGpu> request); | |
|
jamesr
2015/08/27 19:35:47
explicit
cdotstout
2015/08/27 21:28:33
Done.
| |
| 18 ~MojoDrmGpuImpl() override; | |
| 19 | |
| 20 // OzoneDrmGpu. | |
|
jamesr
2015/08/27 19:35:47
these could all be in private:
cdotstout
2015/08/27 21:28:33
Done.
| |
| 21 void CreateWindow(int64_t widget) override; | |
| 22 void WindowBoundsChanged(int64_t widget, mojo::RectPtr bounds) override; | |
| 23 | |
| 24 void AddGraphicsDevice(const mojo::String& file_path, | |
| 25 int32_t file_descriptor) override; | |
| 26 void RefreshNativeDisplays() override; | |
| 27 void ConfigureNativeDisplay(int64_t id, | |
| 28 mojo::DisplayModePtr mode, | |
| 29 mojo::PointPtr originhost) override; | |
| 30 | |
| 31 private: | |
| 32 ui::DrmGpuPlatformSupport* platform_support_; | |
| 33 mojo::StrongBinding<mojo::OzoneDrmGpu> binding_; | |
| 34 | |
| 35 DISALLOW_COPY_AND_ASSIGN(MojoDrmGpuImpl); | |
| 36 }; | |
| 37 | |
| 38 } // namespace ui | |
| 39 | |
| 40 #endif | |
| OLD | NEW |