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

Unified Diff: content/browser/android/ui_resource_provider_impl.h

Issue 755643004: Replace SystemUIResourceManager with ResourceManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix clang build failure Created 6 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
Index: content/browser/android/ui_resource_provider_impl.h
diff --git a/content/browser/android/ui_resource_provider_impl.h b/content/browser/android/ui_resource_provider_impl.h
deleted file mode 100644
index 1c29a3ed11731d0de2f6af36f996ee04eaaaeb38..0000000000000000000000000000000000000000
--- a/content/browser/android/ui_resource_provider_impl.h
+++ /dev/null
@@ -1,55 +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 CONTENT_BROWSER_ANDROID_UI_RESOURCE_PROVIDER_IMPL_H_
-#define CONTENT_BROWSER_ANDROID_UI_RESOURCE_PROVIDER_IMPL_H_
-
-#include "base/containers/hash_tables.h"
-#include "content/browser/android/system_ui_resource_manager_impl.h"
-#include "content/public/browser/android/ui_resource_provider.h"
-
-namespace cc {
-class LayerTreeHost;
-}
-
-namespace content {
-
-class UIResourceClientAndroid;
-
-class UIResourceProviderImpl : public UIResourceProvider {
- public:
- UIResourceProviderImpl();
-
- virtual ~UIResourceProviderImpl();
-
- void SetLayerTreeHost(cc::LayerTreeHost* host);
-
- void UIResourcesAreInvalid();
-
- virtual cc::UIResourceId CreateUIResource(
- UIResourceClientAndroid* client) override;
-
- virtual void DeleteUIResource(cc::UIResourceId resource_id) override;
-
- ui::SystemUIResourceManager& GetSystemUIResourceManager();
-
- void SetSupportsETC1NonPowerOfTwo(bool supports_etc1_npot) {
- supports_etc1_npot_ = supports_etc1_npot;
- }
- virtual bool SupportsETC1NonPowerOfTwo() const override;
-
- private:
- typedef base::hash_map<cc::UIResourceId, UIResourceClientAndroid*>
- UIResourceClientMap;
- UIResourceClientMap ui_resource_client_map_;
- SystemUIResourceManagerImpl system_ui_resource_manager_;
- cc::LayerTreeHost* host_;
- bool supports_etc1_npot_;
-
- DISALLOW_COPY_AND_ASSIGN(UIResourceProviderImpl);
-};
-
-} // namespace content
-
-#endif // CONTENT_BROWSER_ANDROID_UI_RESOURCE_PROVIDER_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698