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

Side by Side Diff: ui/android/resources/ui_resource_client_android.h

Issue 1371523003: Android: Don't destroy LayerTreeHost when Surface goes away (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef UI_ANDROID_RESOURCES_UI_RESOURCE_CLIENT_ANDROID_H_
6 #define UI_ANDROID_RESOURCES_UI_RESOURCE_CLIENT_ANDROID_H_
7
8 #include "cc/resources/ui_resource_client.h"
9 #include "ui/android/ui_android_export.h"
10
11 namespace ui {
12
13 // Android's UIResourceClient has one extra callback (UIResourceIsInvalid).
14 // This signal is intended for the case when the LayerTreeHost is cleared and
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 {
19 public:
20 // This method indicates that the UI resource the user holds is no longer
21 // valid. The user should not call DeleteUIResource on any resource generated
22 // before this signal.
23 virtual void UIResourceIsInvalid() = 0;
24 };
25
26 } // namespace ui
27
28 #endif // UI_ANDROID_RESOURCES_UI_RESOURCE_CLIENT_ANDROID_H_
OLDNEW
« no previous file with comments | « ui/android/resources/ui_resource_android.cc ('k') | ui/android/resources/ui_resource_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698