summaryrefslogtreecommitdiffstats
path: root/ash/content_support
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-15 23:19:25 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-15 23:19:25 +0000
commitd271ba13087b02f646e6ee94380b20c99700b9b7 (patch)
tree1281daa2a269afec3e1bea1506bdbf3fe2442920 /ash/content_support
parentfd42d13f3d867284868b66fd89b2ea6fc0829c1f (diff)
downloadchromium_src-d271ba13087b02f646e6ee94380b20c99700b9b7.zip
chromium_src-d271ba13087b02f646e6ee94380b20c99700b9b7.tar.gz
chromium_src-d271ba13087b02f646e6ee94380b20c99700b9b7.tar.bz2
Revert 245010 "Inject GPUDataManager support into ash to abstrac..."
> Inject GPUDataManager support into ash to abstract a content dependency. > > http://crbug.com/332504 > > R=oshima@chromium.org > > Review URL: https://codereview.chromium.org/138223004 TBR=ben@chromium.org Review URL: https://codereview.chromium.org/137893010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@245018 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/content_support')
-rw-r--r--ash/content_support/DEPS5
-rw-r--r--ash/content_support/ash_with_content_export.h32
-rw-r--r--ash/content_support/gpu_support_impl.cc32
-rw-r--r--ash/content_support/gpu_support_impl.h29
-rw-r--r--ash/content_support/inject.cc17
-rw-r--r--ash/content_support/inject.h16
6 files changed, 0 insertions, 131 deletions
diff --git a/ash/content_support/DEPS b/ash/content_support/DEPS
deleted file mode 100644
index 5ed73eb..0000000
--- a/ash/content_support/DEPS
+++ /dev/null
@@ -1,5 +0,0 @@
-include_rules = [
- # TODO(beng): It may make sense to have a broad permit of content/public
- # in this file, but I'm starting out conservative.
- "+content/public/browser/gpu_data_manager.h",
-]
diff --git a/ash/content_support/ash_with_content_export.h b/ash/content_support/ash_with_content_export.h
deleted file mode 100644
index 155b0b3..0000000
--- a/ash/content_support/ash_with_content_export.h
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright 2014 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 ASH_CONTENT_SUPPORT_ASH_WITH_CONTENT_EXPORT_H_
-#define ASH_CONTENT_SUPPORT_ASH_WITH_CONTENT_EXPORT_H_
-
-// Defines ASH_EXPORT so that functionality implemented by the Ash module can
-// be exported to consumers.
-
-#if defined(COMPONENT_BUILD)
-#if defined(WIN32)
-
-#if defined(ASH_WITH_CONTENT_IMPLEMENTATION)
-#define ASH_WITH_CONTENT_EXPORT __declspec(dllexport)
-#else
-#define ASH_WITH_CONTENT_EXPORT __declspec(dllimport)
-#endif // defined(ASH_WITH_CONTENT_IMPLEMENTATION)
-
-#else // defined(WIN32)
-#if defined(ASH_WITH_CONTENT_IMPLEMENTATION)
-#define ASH_WITH_CONTENT_EXPORT __attribute__((visibility("default")))
-#else
-#define ASH_WITH_CONTENT_EXPORT
-#endif
-#endif
-
-#else // defined(COMPONENT_BUILD)
-#define ASH_WITH_CONTENT_EXPORT
-#endif
-
-#endif // ASH_CONTENT_SUPPORT_ASH_WITH_CONTENT_EXPORT_H_
diff --git a/ash/content_support/gpu_support_impl.cc b/ash/content_support/gpu_support_impl.cc
deleted file mode 100644
index d425d89..0000000
--- a/ash/content_support/gpu_support_impl.cc
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright 2014 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 "ash/content_support/gpu_support_impl.h"
-
-#include "content/public/browser/gpu_data_manager.h"
-#include "gpu/config/gpu_feature_type.h"
-
-namespace ash {
-
-GPUSupportImpl::GPUSupportImpl() {
-}
-
-GPUSupportImpl::~GPUSupportImpl() {
-}
-
-bool GPUSupportImpl::IsPanelFittingDisabled() const {
- return content::GpuDataManager::GetInstance()->IsFeatureBlacklisted(
- gpu::GPU_FEATURE_TYPE_PANEL_FITTING);
-}
-
-void GPUSupportImpl::DisableGpuWatchdog() {
- content::GpuDataManager::GetInstance()->DisableGpuWatchdog();
-}
-
-void GPUSupportImpl::GetGpuProcessHandles(
- const GetGpuProcessHandlesCallback& callback) const {
- content::GpuDataManager::GetInstance()->GetGpuProcessHandles(callback);
-}
-
-} // namespace ash
diff --git a/ash/content_support/gpu_support_impl.h b/ash/content_support/gpu_support_impl.h
deleted file mode 100644
index ee82d06..0000000
--- a/ash/content_support/gpu_support_impl.h
+++ /dev/null
@@ -1,29 +0,0 @@
-// Copyright 2014 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 ASH_CONTENT_SUPPORT_GPU_SUPPORT_IMPL_H_
-#define ASH_CONTENT_SUPPORT_GPU_SUPPORT_IMPL_H_
-
-#include "ash/gpu_support.h"
-
-namespace ash {
-
-class GPUSupportImpl : public GPUSupport {
- public:
- GPUSupportImpl();
- virtual ~GPUSupportImpl();
-
- private:
- // Overridden from GPUSupport:
- virtual bool IsPanelFittingDisabled() const OVERRIDE;
- virtual void DisableGpuWatchdog() OVERRIDE;
- virtual void GetGpuProcessHandles(
- const GetGpuProcessHandlesCallback& callback) const OVERRIDE;
-
- DISALLOW_COPY_AND_ASSIGN(GPUSupportImpl);
-};
-
-} // namespace ash
-
-#endif // ASH_CONTENT_SUPPORT_GPU_SUPPORT_IMPL_H_
diff --git a/ash/content_support/inject.cc b/ash/content_support/inject.cc
deleted file mode 100644
index 7f37865..0000000
--- a/ash/content_support/inject.cc
+++ /dev/null
@@ -1,17 +0,0 @@
-// Copyright 2014 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 "ash/content_support/inject.h"
-
-#include "ash/content_support/gpu_support_impl.h"
-#include "ash/shell.h"
-
-namespace ash {
-
-void InitContentSupport() {
- scoped_ptr<GPUSupportImpl> gpu_support(new GPUSupportImpl);
- Shell::GetInstance()->SetGPUSupport(gpu_support.Pass());
-}
-
-} // namespace ash
diff --git a/ash/content_support/inject.h b/ash/content_support/inject.h
deleted file mode 100644
index b821029..0000000
--- a/ash/content_support/inject.h
+++ /dev/null
@@ -1,16 +0,0 @@
-// Copyright 2014 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 ASH_CONTENT_SUPPORT_INJECT_H_
-#define ASH_CONTENT_SUPPORT_INJECT_H_
-
-#include "ash/content_support/ash_with_content_export.h"
-
-namespace ash {
-
-ASH_WITH_CONTENT_EXPORT void InitContentSupport();
-
-} // namespace ash
-
-#endif // ASH_CONTENT_SUPPORT_INJECT_H_