OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/devtools_system_info_handler.h" | 5 #include "content/browser/devtools/devtools_system_info_handler.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "content/browser/devtools/devtools_protocol_constants.h" | 10 #include "content/browser/devtools/devtools_protocol_constants.h" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 if (in_aux_attributes_) | 59 if (in_aux_attributes_) |
60 dictionary_->SetDouble(name, value.InSecondsF()); | 60 dictionary_->SetDouble(name, value.InSecondsF()); |
61 } | 61 } |
62 | 62 |
63 virtual void BeginGPUDevice() OVERRIDE { | 63 virtual void BeginGPUDevice() OVERRIDE { |
64 } | 64 } |
65 | 65 |
66 virtual void EndGPUDevice() OVERRIDE { | 66 virtual void EndGPUDevice() OVERRIDE { |
67 } | 67 } |
68 | 68 |
| 69 virtual void BeginVideoEncodeAcceleratorSupportedProfile() OVERRIDE {} |
| 70 |
| 71 virtual void EndVideoEncodeAcceleratorSupportedProfile() OVERRIDE {} |
| 72 |
69 virtual void BeginAuxAttributes() OVERRIDE { | 73 virtual void BeginAuxAttributes() OVERRIDE { |
70 in_aux_attributes_ = true; | 74 in_aux_attributes_ = true; |
71 } | 75 } |
72 | 76 |
73 virtual void EndAuxAttributes() OVERRIDE { | 77 virtual void EndAuxAttributes() OVERRIDE { |
74 in_aux_attributes_ = false; | 78 in_aux_attributes_ = false; |
75 } | 79 } |
76 | 80 |
77 private: | 81 private: |
78 base::DictionaryValue* dictionary_; | 82 base::DictionaryValue* dictionary_; |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 gpu_dict->Set(kDriverBugWorkarounds, GetDriverBugWorkarounds()); | 127 gpu_dict->Set(kDriverBugWorkarounds, GetDriverBugWorkarounds()); |
124 | 128 |
125 base::DictionaryValue* system_dict = new base::DictionaryValue; | 129 base::DictionaryValue* system_dict = new base::DictionaryValue; |
126 system_dict->SetString(kModelName, gpu_info.machine_model_name); | 130 system_dict->SetString(kModelName, gpu_info.machine_model_name); |
127 system_dict->SetString(kModelVersion, gpu_info.machine_model_version); | 131 system_dict->SetString(kModelVersion, gpu_info.machine_model_version); |
128 system_dict->Set(kGPU, gpu_dict); | 132 system_dict->Set(kGPU, gpu_dict); |
129 return command->SuccessResponse(system_dict); | 133 return command->SuccessResponse(system_dict); |
130 } | 134 } |
131 | 135 |
132 } // namespace content | 136 } // namespace content |
OLD | NEW |