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

Side by Side Diff: content/browser/devtools/protocol/system_info_handler.cc

Issue 795633005: Add VDA supported profile to GPUInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address patch 19 Created 5 years, 9 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 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 "content/browser/devtools/protocol/system_info_handler.h" 5 #include "content/browser/devtools/protocol/system_info_handler.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "content/browser/gpu/compositor_util.h" 8 #include "content/browser/gpu/compositor_util.h"
9 #include "content/public/browser/gpu_data_manager.h" 9 #include "content/public/browser/gpu_data_manager.h"
10 #include "gpu/config/gpu_info.h" 10 #include "gpu/config/gpu_info.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 void AddTimeDeltaInSecondsF(const char* name, 49 void AddTimeDeltaInSecondsF(const char* name,
50 const base::TimeDelta& value) override { 50 const base::TimeDelta& value) override {
51 if (in_aux_attributes_) 51 if (in_aux_attributes_)
52 dictionary_->SetDouble(name, value.InSecondsF()); 52 dictionary_->SetDouble(name, value.InSecondsF());
53 } 53 }
54 54
55 void BeginGPUDevice() override {} 55 void BeginGPUDevice() override {}
56 56
57 void EndGPUDevice() override {} 57 void EndGPUDevice() override {}
58 58
59 void BeginVideoDecodeAcceleratorSupportedProfile() override {}
60
61 void EndVideoDecodeAcceleratorSupportedProfile() override {}
62
59 void BeginVideoEncodeAcceleratorSupportedProfile() override {} 63 void BeginVideoEncodeAcceleratorSupportedProfile() override {}
60 64
61 void EndVideoEncodeAcceleratorSupportedProfile() override {} 65 void EndVideoEncodeAcceleratorSupportedProfile() override {}
62 66
63 void BeginAuxAttributes() override { 67 void BeginAuxAttributes() override {
64 in_aux_attributes_ = true; 68 in_aux_attributes_ = true;
65 } 69 }
66 70
67 void EndAuxAttributes() override { 71 void EndAuxAttributes() override {
68 in_aux_attributes_ = false; 72 in_aux_attributes_ = false;
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 SendGetInfoResponse(command_id); 224 SendGetInfoResponse(command_id);
221 // For the time being we want to know about this event in the test logs. 225 // For the time being we want to know about this event in the test logs.
222 LOG(ERROR) << "SystemInfoHandler: request for GPU info timed out!" 226 LOG(ERROR) << "SystemInfoHandler: request for GPU info timed out!"
223 << " Most recent info sent."; 227 << " Most recent info sent.";
224 } 228 }
225 } 229 }
226 230
227 } // namespace system_info 231 } // namespace system_info
228 } // namespace devtools 232 } // namespace devtools
229 } // namespace content 233 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698