| OLD | NEW |
| 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 UI_ANDROID_RESOURCES_UI_RESOURCE_CLIENT_ANDROID_H_ | 5 #ifndef UI_ANDROID_RESOURCES_UI_RESOURCE_CLIENT_ANDROID_H_ |
| 6 #define UI_ANDROID_RESOURCES_UI_RESOURCE_CLIENT_ANDROID_H_ | 6 #define UI_ANDROID_RESOURCES_UI_RESOURCE_CLIENT_ANDROID_H_ |
| 7 | 7 |
| 8 #include "cc/resources/ui_resource_client.h" | 8 #include "cc/resources/ui_resource_client.h" |
| 9 #include "ui/android/ui_android_export.h" | 9 #include "ui/android/ui_android_export.h" |
| 10 | 10 |
| 11 namespace ui { | 11 namespace ui { |
| 12 | 12 |
| 13 // Android's UIResourceClient has one extra callback (UIResourceIsInvalid). | 13 // TODO(sievers): This interface should be removed. But it requires Thumbnail |
| 14 // This signal is intended for the case when the LayerTreeHost is cleared and | 14 // to manage its bitmap paging differently. |
| 15 // the user needs to recreate their resources. | |
| 16 // TODO(powei): This interface can be removed once crbug.com/374906 has been | |
| 17 // addressed. | |
| 18 class UI_ANDROID_EXPORT UIResourceClientAndroid : public cc::UIResourceClient { | 15 class UI_ANDROID_EXPORT UIResourceClientAndroid : public cc::UIResourceClient { |
| 19 public: | 16 public: |
| 20 // This method indicates that the UI resource the user holds is no longer | 17 // This method indicates that the UI resource the user holds was evicted. |
| 21 // valid. The user should not call DeleteUIResource on any resource generated | 18 // DEPRECATED. |
| 22 // before this signal. | 19 virtual void OnWasEvicted() {} |
| 23 virtual void UIResourceIsInvalid() = 0; | |
| 24 }; | 20 }; |
| 25 | 21 |
| 26 } // namespace ui | 22 } // namespace ui |
| 27 | 23 |
| 28 #endif // UI_ANDROID_RESOURCES_UI_RESOURCE_CLIENT_ANDROID_H_ | 24 #endif // UI_ANDROID_RESOURCES_UI_RESOURCE_CLIENT_ANDROID_H_ |
| OLD | NEW |