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

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

Issue 22870016: Update the nine patch layer to use UI resources (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_COMPOSITOR_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_ANDROID_COMPOSITOR_CLIENT_H_
6 #define CONTENT_PUBLIC_BROWSER_ANDROID_COMPOSITOR_CLIENT_H_ 6 #define CONTENT_PUBLIC_BROWSER_ANDROID_COMPOSITOR_CLIENT_H_
7 7
8 #include "content/common/content_export.h" 8 #include "content/common/content_export.h"
9 9
10 namespace content { 10 namespace content {
11 11
12 class CONTENT_EXPORT CompositorClient { 12 class CONTENT_EXPORT CompositorClient {
13 public: 13 public:
14 // Tells the client that it should schedule a composite. 14 // Tells the client that it should schedule a composite.
15 virtual void ScheduleComposite() = 0; 15 virtual void ScheduleComposite() = 0;
16 16
17 // The compositor has completed swapping a frame. 17 // The compositor has completed swapping a frame.
18 virtual void OnSwapBuffersCompleted() {} 18 virtual void OnSwapBuffersCompleted() {}
19 19
20 // The compositor will eventually swap a frame. 20 // The compositor will eventually swap a frame.
21 virtual void OnSwapBuffersPosted() {} 21 virtual void OnSwapBuffersPosted() {}
22 22
23 // Tells the client that GL resources were lost and need to be reinitialized. 23 // Tells the client that GL resources were lost and need to be reinitialized.
24 virtual void DidLoseResources() {} 24 virtual void DidLoseResources() {}
25 25
26 // Tells the client that UI resources were lost and need to be reinitialized.
27 virtual void DidLoseUIResources() {}
28
26 protected: 29 protected:
27 CompositorClient() {} 30 CompositorClient() {}
28 virtual ~CompositorClient() {} 31 virtual ~CompositorClient() {}
29 32
30 private: 33 private:
31 DISALLOW_COPY_AND_ASSIGN(CompositorClient); 34 DISALLOW_COPY_AND_ASSIGN(CompositorClient);
32 }; 35 };
33 36
34 } // namespace content 37 } // namespace content
35 38
36 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_COMPOSITOR_CLIENT_H_ 39 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_COMPOSITOR_CLIENT_H_
OLDNEW
« content/public/browser/android/compositor.h ('K') | « content/public/browser/android/compositor.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698