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

Side by Side Diff: ui/ozone/public/gpu_platform_support_host.cc

Issue 2848643002: Revert of gpu: Completely remove GpuProcessHostUIShim. (Closed)
Patch Set: Created 3 years, 7 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 | « ui/ozone/public/gpu_platform_support_host.h ('k') | ui/ozone/public/ozone_gpu_test_helper.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 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 "ui/ozone/public/gpu_platform_support_host.h" 5 #include "ui/ozone/public/gpu_platform_support_host.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/trace_event/trace_event.h" 8 #include "base/trace_event/trace_event.h"
9 9
10 namespace ui { 10 namespace ui {
11 11
12 namespace { 12 namespace {
13 13
14 // No-op implementations of GpuPlatformSupportHost. 14 // No-op implementations of GpuPlatformSupportHost.
15 class StubGpuPlatformSupportHost : public GpuPlatformSupportHost { 15 class StubGpuPlatformSupportHost : public GpuPlatformSupportHost {
16 public: 16 public:
17 // GpuPlatformSupportHost: 17 // GpuPlatformSupportHost:
18 void OnGpuProcessLaunched( 18 void OnGpuProcessLaunched(
19 int host_id, 19 int host_id,
20 scoped_refptr<base::SingleThreadTaskRunner> ui_runner,
21 scoped_refptr<base::SingleThreadTaskRunner> send_runner, 20 scoped_refptr<base::SingleThreadTaskRunner> send_runner,
22 const base::Callback<void(IPC::Message*)>& send_callback) override {} 21 const base::Callback<void(IPC::Message*)>& send_callback) override {}
23 22
23 void OnChannelEstablished() override {}
24
24 void OnChannelDestroyed(int host_id) override {} 25 void OnChannelDestroyed(int host_id) override {}
25 bool OnMessageReceived(const IPC::Message&) override { return false; } 26 bool OnMessageReceived(const IPC::Message&) override { return false; }
26 }; 27 };
27 28
28 } // namespace 29 } // namespace
29 30
30 GpuPlatformSupportHost::GpuPlatformSupportHost() { 31 GpuPlatformSupportHost::GpuPlatformSupportHost() {
31 } 32 }
32 33
33 GpuPlatformSupportHost::~GpuPlatformSupportHost() { 34 GpuPlatformSupportHost::~GpuPlatformSupportHost() {
34 } 35 }
35 36
36 GpuPlatformSupportHost* CreateStubGpuPlatformSupportHost() { 37 GpuPlatformSupportHost* CreateStubGpuPlatformSupportHost() {
37 return new StubGpuPlatformSupportHost; 38 return new StubGpuPlatformSupportHost;
38 } 39 }
39 40
40 } // namespace ui 41 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/public/gpu_platform_support_host.h ('k') | ui/ozone/public/ozone_gpu_test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698