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

Unified Diff: content/gpu/gpu_info_collector_android.cc

Issue 9348033: Adds gpu_info_collector and ImageTransportSurface methods for android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed apatrick's comments. Created 8 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/content_gpu.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/gpu/gpu_info_collector_android.cc
diff --git a/content/gpu/gpu_info_collector_android.cc b/content/gpu/gpu_info_collector_android.cc
new file mode 100644
index 0000000000000000000000000000000000000000..f6c7f65eb74e22ee9d654ef7cec5bff8d73dd52a
--- /dev/null
+++ b/content/gpu/gpu_info_collector_android.cc
@@ -0,0 +1,30 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/gpu/gpu_info_collector.h"
+
+#include "base/logging.h"
+
+namespace gpu_info_collector {
+
+bool CollectGraphicsInfo(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) {
+ return true;
+}
+
+bool CollectVideoCardInfo(content::GPUInfo* gpu_info) {
+ return true;
+}
+
+bool CollectDriverInfoGL(content::GPUInfo* gpu_info) {
+ return true;
+}
+
+} // namespace gpu_info_collector
« no previous file with comments | « content/content_gpu.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698