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

Unified Diff: ui/android/delegated_frame_host_android.h

Issue 2527283003: cc: Introduce BeginFrame sequence numbers and acknowledgements.
Patch Set: Address Brian's comments. Created 4 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
« no previous file with comments | « ui/android/DEPS ('k') | ui/android/delegated_frame_host_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/android/delegated_frame_host_android.h
diff --git a/ui/android/delegated_frame_host_android.h b/ui/android/delegated_frame_host_android.h
index 77479e22c3593e967ad7576ff7f17fb902e10e3a..977f03b053d977efb1bdf03e0d9f8bf71d90c6a5 100644
--- a/ui/android/delegated_frame_host_android.h
+++ b/ui/android/delegated_frame_host_android.h
@@ -32,12 +32,16 @@ class WindowAndroidCompositor;
class UI_ANDROID_EXPORT DelegatedFrameHostAndroid
: public cc::SurfaceFactoryClient {
public:
- using ReturnResourcesCallback =
- base::Callback<void(const cc::ReturnedResourceArray&)>;
+ class Client {
+ public:
+ virtual void SetBeginFrameSource(
+ cc::BeginFrameSource* begin_frame_source) = 0;
+ virtual void ReturnResources(const cc::ReturnedResourceArray&) = 0;
+ };
DelegatedFrameHostAndroid(ViewAndroid* view,
SkColor background_color,
- ReturnResourcesCallback return_resources_callback);
+ Client* client);
~DelegatedFrameHostAndroid() override;
@@ -81,7 +85,7 @@ class UI_ANDROID_EXPORT DelegatedFrameHostAndroid
cc::SurfaceManager* surface_manager_;
std::unique_ptr<cc::SurfaceIdAllocator> surface_id_allocator_;
cc::FrameSinkId registered_parent_frame_sink_id_;
- ReturnResourcesCallback return_resources_callback_;
+ Client* client_;
std::unique_ptr<cc::SurfaceFactory> surface_factory_;
« no previous file with comments | « ui/android/DEPS ('k') | ui/android/delegated_frame_host_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698