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

Side by Side Diff: content/public/browser/android/ui_resource_provider.h

Issue 470233003: Restrict ETC1 power-of-two rounding to old IMG drivers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_BROWSER_ANDROID_UI_RESOURCE_PROVIDER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_ANDROID_UI_RESOURCE_PROVIDER_H_
6 #define CONTENT_PUBLIC_BROWSER_ANDROID_UI_RESOURCE_PROVIDER_H_ 6 #define CONTENT_PUBLIC_BROWSER_ANDROID_UI_RESOURCE_PROVIDER_H_
7 7
8 #include "cc/resources/ui_resource_client.h" 8 #include "cc/resources/ui_resource_client.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 10
11 namespace content { 11 namespace content {
12 12
13 class UIResourceClientAndroid; 13 class UIResourceClientAndroid;
14 14
15 class CONTENT_EXPORT UIResourceProvider { 15 class CONTENT_EXPORT UIResourceProvider {
16 public: 16 public:
17 virtual ~UIResourceProvider() {} 17 virtual ~UIResourceProvider() {}
18 18
19 virtual cc::UIResourceId CreateUIResource( 19 virtual cc::UIResourceId CreateUIResource(
20 UIResourceClientAndroid* client) = 0; 20 UIResourceClientAndroid* client) = 0;
21 21
22 virtual void DeleteUIResource(cc::UIResourceId resource_id) = 0; 22 virtual void DeleteUIResource(cc::UIResourceId resource_id) = 0;
23
24 virtual bool SupportsETC1NonPowerOfTwo() const = 0;
23 }; 25 };
24 26
25 } // namespace content 27 } // namespace content
26 28
27 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_UI_RESOURCE_PROVIDER_H_ 29 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_UI_RESOURCE_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698