Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(106)

Side by Side Diff: services/ui/ws/gpu_host.h

Issue 2781553002: gpu: Introduce separate mojo api for failed initialization. (Closed)
Patch Set: . Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « services/ui/gpu/interfaces/gpu_host.mojom ('k') | services/ui/ws/gpu_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #ifndef SERVICES_UI_WS_GPU_HOST_H_ 5 #ifndef SERVICES_UI_WS_GPU_HOST_H_
6 #define SERVICES_UI_WS_GPU_HOST_H_ 6 #define SERVICES_UI_WS_GPU_HOST_H_
7 7
8 #include "base/single_thread_task_runner.h" 8 #include "base/single_thread_task_runner.h"
9 #include "base/synchronization/waitable_event.h" 9 #include "base/synchronization/waitable_event.h"
10 #include "base/threading/thread.h" 10 #include "base/threading/thread.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 void CreateDisplayCompositor(cc::mojom::DisplayCompositorRequest request, 48 void CreateDisplayCompositor(cc::mojom::DisplayCompositorRequest request,
49 cc::mojom::DisplayCompositorClientPtr client); 49 cc::mojom::DisplayCompositorClientPtr client);
50 50
51 private: 51 private:
52 friend class test::GpuHostTest; 52 friend class test::GpuHostTest;
53 53
54 GpuClient* AddInternal(mojom::GpuRequest request); 54 GpuClient* AddInternal(mojom::GpuRequest request);
55 void OnBadMessageFromGpu(); 55 void OnBadMessageFromGpu();
56 56
57 // mojom::GpuHost: 57 // mojom::GpuHost:
58 void DidInitialize(const gpu::GPUInfo& gpu_info) override; 58 void DidInitialize(const gpu::GPUInfo& gpu_info,
59 const gpu::GpuFeatureInfo& gpu_feature_info) override;
60 void DidFailInitialize() override;
59 void DidCreateOffscreenContext(const GURL& url) override; 61 void DidCreateOffscreenContext(const GURL& url) override;
60 void DidDestroyOffscreenContext(const GURL& url) override; 62 void DidDestroyOffscreenContext(const GURL& url) override;
61 void DidDestroyChannel(int32_t client_id) override; 63 void DidDestroyChannel(int32_t client_id) override;
62 void DidLoseContext(bool offscreen, 64 void DidLoseContext(bool offscreen,
63 gpu::error::ContextLostReason reason, 65 gpu::error::ContextLostReason reason,
64 const GURL& active_url) override; 66 const GURL& active_url) override;
65 void SetChildSurface(gpu::SurfaceHandle parent, 67 void SetChildSurface(gpu::SurfaceHandle parent,
66 gpu::SurfaceHandle child) override; 68 gpu::SurfaceHandle child) override;
67 void StoreShaderToDisk(int32_t client_id, 69 void StoreShaderToDisk(int32_t client_id,
68 const std::string& key, 70 const std::string& key,
(...skipping 18 matching lines...) Expand all
87 89
88 mojo::StrongBindingSet<mojom::Gpu> gpu_bindings_; 90 mojo::StrongBindingSet<mojom::Gpu> gpu_bindings_;
89 91
90 DISALLOW_COPY_AND_ASSIGN(GpuHost); 92 DISALLOW_COPY_AND_ASSIGN(GpuHost);
91 }; 93 };
92 94
93 } // namespace ws 95 } // namespace ws
94 } // namespace ui 96 } // namespace ui
95 97
96 #endif // SERVICES_UI_WS_GPU_HOST_H_ 98 #endif // SERVICES_UI_WS_GPU_HOST_H_
OLDNEW
« no previous file with comments | « services/ui/gpu/interfaces/gpu_host.mojom ('k') | services/ui/ws/gpu_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698