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

Unified Diff: content/gpu/gpu_info_collector_android.cc

Issue 11576056: Attempt to reland r173248,173259 (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/gpu/gpu_info_collector.cc ('k') | content/gpu/gpu_info_collector_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/gpu/gpu_info_collector_android.cc
===================================================================
--- content/gpu/gpu_info_collector_android.cc (revision 173496)
+++ content/gpu/gpu_info_collector_android.cc (working copy)
@@ -45,14 +45,14 @@
namespace gpu_info_collector {
-bool CollectGraphicsInfo(content::GPUInfo* gpu_info) {
+bool CollectContextGraphicsInfo(content::GPUInfo* gpu_info) {
// can_lose_context must be false to enable accelerated Canvas2D
gpu_info->can_lose_context = false;
gpu_info->finalized = true;
return CollectGraphicsInfoGL(gpu_info);
}
-bool CollectPreliminaryGraphicsInfo(content::GPUInfo* gpu_info) {
+bool CollectBasicGraphicsInfo(content::GPUInfo* gpu_info) {
gpu_info->can_lose_context = false;
// Create a short-lived context on the UI thread to collect the GL strings.
if (!CollectGraphicsInfoGL(gpu_info))
@@ -73,14 +73,15 @@
return true;
}
-bool CollectVideoCardInfo(content::GPUInfo* gpu_info) {
- return true;
-}
-
bool CollectDriverInfoGL(content::GPUInfo* gpu_info) {
gpu_info->driver_version = GetDriverVersionFromString(
gpu_info->gl_version_string);
return true;
}
+void MergeGPUInfo(content::GPUInfo* basic_gpu_info,
+ const content::GPUInfo& context_gpu_info) {
+ MergeGPUInfoGL(basic_gpu_info, context_gpu_info);
+}
+
} // namespace gpu_info_collector
« no previous file with comments | « content/gpu/gpu_info_collector.cc ('k') | content/gpu/gpu_info_collector_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698