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

Unified Diff: ui/android/delegated_frame_host_android.h

Issue 2585993002: Revert of [android] Make RWHVAndroid a BeginFrameObserver. (Closed)
Patch Set: 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 977f03b053d977efb1bdf03e0d9f8bf71d90c6a5..77479e22c3593e967ad7576ff7f17fb902e10e3a 100644
--- a/ui/android/delegated_frame_host_android.h
+++ b/ui/android/delegated_frame_host_android.h
@@ -32,16 +32,12 @@
class UI_ANDROID_EXPORT DelegatedFrameHostAndroid
: public cc::SurfaceFactoryClient {
public:
- class Client {
- public:
- virtual void SetBeginFrameSource(
- cc::BeginFrameSource* begin_frame_source) = 0;
- virtual void ReturnResources(const cc::ReturnedResourceArray&) = 0;
- };
+ using ReturnResourcesCallback =
+ base::Callback<void(const cc::ReturnedResourceArray&)>;
DelegatedFrameHostAndroid(ViewAndroid* view,
SkColor background_color,
- Client* client);
+ ReturnResourcesCallback return_resources_callback);
~DelegatedFrameHostAndroid() override;
@@ -85,7 +81,7 @@
cc::SurfaceManager* surface_manager_;
std::unique_ptr<cc::SurfaceIdAllocator> surface_id_allocator_;
cc::FrameSinkId registered_parent_frame_sink_id_;
- Client* client_;
+ ReturnResourcesCallback return_resources_callback_;
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