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

Side by Side Diff: chrome/gpu/chrome_content_gpu_client.h

Issue 2919193002: ArcBridge: Rename VideoAcceleratorService to VideoDecodeAccelerator. (Closed)
Patch Set: Address review comments Created 3 years, 6 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
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 CHROME_GPU_CHROME_CONTENT_GPU_CLIENT_H_ 5 #ifndef CHROME_GPU_CHROME_CONTENT_GPU_CLIENT_H_
6 #define CHROME_GPU_CHROME_CONTENT_GPU_CLIENT_H_ 6 #define CHROME_GPU_CHROME_CONTENT_GPU_CLIENT_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/profiler/stack_sampling_profiler.h" 11 #include "base/profiler/stack_sampling_profiler.h"
12 #include "components/variations/child_process_field_trial_syncer.h" 12 #include "components/variations/child_process_field_trial_syncer.h"
13 #include "content/public/gpu/content_gpu_client.h" 13 #include "content/public/gpu/content_gpu_client.h"
14 14
15 #if defined(OS_CHROMEOS) 15 #if defined(OS_CHROMEOS)
16 #include "chrome/gpu/gpu_arc_video_service.h" 16 #include "chrome/gpu/gpu_arc_video_decode_accelerator.h"
17 17
18 namespace service_manager { 18 namespace service_manager {
19 struct BindSourceInfo; 19 struct BindSourceInfo;
20 } 20 }
21 21
22 #endif 22 #endif
23 23
24 class ChromeContentGpuClient : public content::ContentGpuClient { 24 class ChromeContentGpuClient : public content::ContentGpuClient {
25 public: 25 public:
26 ChromeContentGpuClient(); 26 ChromeContentGpuClient();
27 ~ChromeContentGpuClient() override; 27 ~ChromeContentGpuClient() override;
28 28
29 // content::ContentGpuClient: 29 // content::ContentGpuClient:
30 void Initialize(base::FieldTrialList::Observer* observer, 30 void Initialize(base::FieldTrialList::Observer* observer,
31 service_manager::BinderRegistry* registry) override; 31 service_manager::BinderRegistry* registry) override;
32 void GpuServiceInitialized( 32 void GpuServiceInitialized(
33 const gpu::GpuPreferences& gpu_preferences) override; 33 const gpu::GpuPreferences& gpu_preferences) override;
34 34
35 private: 35 private:
36 #if defined(OS_CHROMEOS) 36 #if defined(OS_CHROMEOS)
37 void CreateArcVideoAcceleratorService( 37 void CreateArcVideoDecodeAccelerator(
38 const service_manager::BindSourceInfo& source_info, 38 const service_manager::BindSourceInfo& source_info,
39 ::arc::mojom::VideoAcceleratorServiceRequest request); 39 ::arc::mojom::VideoDecodeAcceleratorRequest request);
40 #endif 40 #endif
41 41
42 std::unique_ptr<variations::ChildProcessFieldTrialSyncer> field_trial_syncer_; 42 std::unique_ptr<variations::ChildProcessFieldTrialSyncer> field_trial_syncer_;
43 // Used to profile process startup. 43 // Used to profile process startup.
44 base::StackSamplingProfiler stack_sampling_profiler_; 44 base::StackSamplingProfiler stack_sampling_profiler_;
45 45
46 #if defined(OS_CHROMEOS) 46 #if defined(OS_CHROMEOS)
47 gpu::GpuPreferences gpu_preferences_; 47 gpu::GpuPreferences gpu_preferences_;
48 #endif 48 #endif
49 49
50 DISALLOW_COPY_AND_ASSIGN(ChromeContentGpuClient); 50 DISALLOW_COPY_AND_ASSIGN(ChromeContentGpuClient);
51 }; 51 };
52 52
53 #endif // CHROME_GPU_CHROME_CONTENT_GPU_CLIENT_H_ 53 #endif // CHROME_GPU_CHROME_CONTENT_GPU_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/gpu/chrome_arc_video_decode_accelerator.cc ('k') | chrome/gpu/chrome_content_gpu_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698