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

Side by Side Diff: content/common/gpu/media/vaapi_wrapper.cc

Issue 1875913002: Cleanup: Convert const char* kFoo to const char kFoo[]. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
OLDNEW
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/common/gpu/media/vaapi_wrapper.h" 5 #include "content/common/gpu/media/vaapi_wrapper.h"
6 6
7 #include <dlfcn.h> 7 #include <dlfcn.h>
8 #include <string.h> 8 #include <string.h>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 1129 matching lines...) Expand 10 before | Expand all | Expand 10 after
1140 } 1140 }
1141 if (va_vpp_config_id_ != VA_INVALID_ID) { 1141 if (va_vpp_config_id_ != VA_INVALID_ID) {
1142 vaDestroyConfig(va_display_, va_vpp_config_id_); 1142 vaDestroyConfig(va_display_, va_vpp_config_id_);
1143 va_vpp_config_id_ = VA_INVALID_ID; 1143 va_vpp_config_id_ = VA_INVALID_ID;
1144 } 1144 }
1145 } 1145 }
1146 1146
1147 // static 1147 // static
1148 void VaapiWrapper::PreSandboxInitialization() { 1148 void VaapiWrapper::PreSandboxInitialization() {
1149 #if defined(USE_OZONE) 1149 #if defined(USE_OZONE)
1150 const char* kDriRenderNode0Path = "/dev/dri/renderD128"; 1150 const char kDriRenderNode0Path[] = "/dev/dri/renderD128";
1151 base::File drm_file = base::File( 1151 base::File drm_file = base::File(
1152 base::FilePath::FromUTF8Unsafe(kDriRenderNode0Path), 1152 base::FilePath::FromUTF8Unsafe(kDriRenderNode0Path),
1153 base::File::FLAG_OPEN | base::File::FLAG_READ | base::File::FLAG_WRITE); 1153 base::File::FLAG_OPEN | base::File::FLAG_READ | base::File::FLAG_WRITE);
1154 if (drm_file.IsValid()) 1154 if (drm_file.IsValid())
1155 va_display_state_.Get().SetDrmFd(drm_file.GetPlatformFile()); 1155 va_display_state_.Get().SetDrmFd(drm_file.GetPlatformFile());
1156 #endif 1156 #endif
1157 } 1157 }
1158 1158
1159 // static 1159 // static
1160 bool VaapiWrapper::PostSandboxInitialization() { 1160 bool VaapiWrapper::PostSandboxInitialization() {
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
1265 drm_fd_.reset(HANDLE_EINTR(dup(fd))); 1265 drm_fd_.reset(HANDLE_EINTR(dup(fd)));
1266 } 1266 }
1267 #endif // USE_OZONE 1267 #endif // USE_OZONE
1268 1268
1269 bool VaapiWrapper::VADisplayState::VAAPIVersionLessThan(int major, int minor) { 1269 bool VaapiWrapper::VADisplayState::VAAPIVersionLessThan(int major, int minor) {
1270 return (major_version_ < major) || 1270 return (major_version_ < major) ||
1271 (major_version_ == major && minor_version_ < minor); 1271 (major_version_ == major && minor_version_ < minor);
1272 } 1272 }
1273 1273
1274 } // namespace content 1274 } // namespace content
OLDNEW
« no previous file with comments | « content/child/appcache/web_application_cache_host_impl.cc ('k') | content/common/origin_trials/trial_token.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698