summaryrefslogtreecommitdiffstats
path: root/content/gpu
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-17 22:24:43 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-17 22:24:43 +0000
commit490f79c179cc9df090dc68e36949ecc3458793da (patch)
tree1792cef02967fb6f8abe77e05d1f8ad015603ffb /content/gpu
parent3ffd3aec671a91b110860fc7c956f4d11a5be680 (diff)
downloadchromium_src-490f79c179cc9df090dc68e36949ecc3458793da.zip
chromium_src-490f79c179cc9df090dc68e36949ecc3458793da.tar.gz
chromium_src-490f79c179cc9df090dc68e36949ecc3458793da.tar.bz2
Add separate ContentClient interfaces for gpu/plugin/renderer processes. Since we don't have a need for a chrome/gpu or chrome/plugin directory, their chrome implementations are in chrome/common. Use the renderer one for getting the sad plugin image.
Review URL: http://codereview.chromium.org/6708013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78617 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/gpu')
-rw-r--r--content/gpu/content_gpu_client.h24
-rw-r--r--content/gpu/gpu_thread.cc4
2 files changed, 26 insertions, 2 deletions
diff --git a/content/gpu/content_gpu_client.h b/content/gpu/content_gpu_client.h
new file mode 100644
index 0000000..e87f90b
--- /dev/null
+++ b/content/gpu/content_gpu_client.h
@@ -0,0 +1,24 @@
+// Copyright (c) 2011 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.
+
+#ifndef CONTENT_GPU_CONTENT_GPU_CLIENT_H_
+#define CONTENT_GPU_CONTENT_GPU_CLIENT_H_
+#pragma once
+
+#include "content/common/content_client.h"
+
+struct GPUInfo;
+
+namespace content {
+
+// Embedder API for participating in plugin logic.
+class ContentGpuClient {
+ public:
+ // Sets the data on the gpu to send along with crash reports.
+ virtual void SetGpuInfo(const GPUInfo& gpu_info) {}
+};
+
+} // namespace content
+
+#endif // CONTENT_GPU_CONTENT_GPU_CLIENT_H_
diff --git a/content/gpu/gpu_thread.cc b/content/gpu/gpu_thread.cc
index 3dc960e..d620747 100644
--- a/content/gpu/gpu_thread.cc
+++ b/content/gpu/gpu_thread.cc
@@ -14,9 +14,9 @@
#include "base/threading/worker_pool.h"
#include "build/build_config.h"
#include "content/common/child_process.h"
-#include "content/common/content_client.h"
#include "content/common/content_switches.h"
#include "content/common/gpu_messages.h"
+#include "content/gpu/content_gpu_client.h"
#include "content/gpu/gpu_info_collector.h"
#include "content/gpu/gpu_watchdog_thread.h"
#include "ipc/ipc_channel_handle.h"
@@ -132,7 +132,7 @@ void GpuThread::OnInitialize() {
}
gpu_info_collector::CollectGraphicsInfo(&gpu_info_);
- content::GetContentClient()->SetGpuInfo(gpu_info_);
+ content::GetContentClient()->gpu()->SetGpuInfo(gpu_info_);
LOG(INFO) << "gpu_info_collector::CollectGraphicsInfo complete";
// Record initialization only after collecting the GPU info because that can