summaryrefslogtreecommitdiffstats
path: root/content/gpu
diff options
context:
space:
mode:
authorsatish@chromium.org <satish@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-08 19:41:44 +0000
committersatish@chromium.org <satish@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-08 19:41:44 +0000
commit3b7efa429ff1f345615fbd4d5ced0ec5e0c510f1 (patch)
tree2b8d046f300ae9acb95de6f5cf19dfb7ecbbbe0b /content/gpu
parent00f57d364bef199915b38c979cef4201688ea2ca (diff)
downloadchromium_src-3b7efa429ff1f345615fbd4d5ced0ec5e0c510f1.zip
chromium_src-3b7efa429ff1f345615fbd4d5ced0ec5e0c510f1.tar.gz
chromium_src-3b7efa429ff1f345615fbd4d5ced0ec5e0c510f1.tar.bz2
Adds gpu_info_collector and ImageTransportSurface methods for android.
These are required to build content_unittests. BUG=None TEST= Review URL: http://codereview.chromium.org/9348033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121023 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/gpu')
-rw-r--r--content/gpu/gpu_info_collector_android.cc30
1 files changed, 30 insertions, 0 deletions
diff --git a/content/gpu/gpu_info_collector_android.cc b/content/gpu/gpu_info_collector_android.cc
new file mode 100644
index 0000000..f6c7f65
--- /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