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

Side by Side Diff: ui/android/delegated_frame_host_android.h

Issue 2686243002: content/ui[Android]: Remove ContextProviderFactory. (Closed)
Patch Set: more rebase Created 3 years, 9 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
« no previous file with comments | « ui/android/context_provider_factory.cc ('k') | ui/android/delegated_frame_host_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_DELEGATED_FRAME_HOST_ANDROID_H_ 5 #ifndef UI_ANDROID_DELEGATED_FRAME_HOST_ANDROID_H_
6 #define UI_ANDROID_DELEGATED_FRAME_HOST_ANDROID_H_ 6 #define UI_ANDROID_DELEGATED_FRAME_HOST_ANDROID_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "cc/output/copy_output_request.h" 10 #include "cc/output/copy_output_request.h"
(...skipping 21 matching lines...) Expand all
32 : public cc::SurfaceFactoryClient { 32 : public cc::SurfaceFactoryClient {
33 public: 33 public:
34 class Client { 34 class Client {
35 public: 35 public:
36 virtual void SetBeginFrameSource( 36 virtual void SetBeginFrameSource(
37 cc::BeginFrameSource* begin_frame_source) = 0; 37 cc::BeginFrameSource* begin_frame_source) = 0;
38 virtual void ReturnResources(const cc::ReturnedResourceArray&) = 0; 38 virtual void ReturnResources(const cc::ReturnedResourceArray&) = 0;
39 }; 39 };
40 40
41 DelegatedFrameHostAndroid(ViewAndroid* view, 41 DelegatedFrameHostAndroid(ViewAndroid* view,
42 cc::SurfaceManager* surface_manager,
42 Client* client, 43 Client* client,
43 const cc::FrameSinkId& frame_sink_id); 44 const cc::FrameSinkId& frame_sink_id);
44 45
45 ~DelegatedFrameHostAndroid() override; 46 ~DelegatedFrameHostAndroid() override;
46 47
47 void SubmitCompositorFrame(cc::CompositorFrame frame, 48 void SubmitCompositorFrame(cc::CompositorFrame frame,
48 cc::SurfaceFactory::DrawCallback draw_callback); 49 cc::SurfaceFactory::DrawCallback draw_callback);
49 50
50 void DestroyDelegatedContent(); 51 void DestroyDelegatedContent();
51 52
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 std::unique_ptr<FrameData> current_frame_; 99 std::unique_ptr<FrameData> current_frame_;
99 100
100 scoped_refptr<cc::SurfaceLayer> content_layer_; 101 scoped_refptr<cc::SurfaceLayer> content_layer_;
101 102
102 DISALLOW_COPY_AND_ASSIGN(DelegatedFrameHostAndroid); 103 DISALLOW_COPY_AND_ASSIGN(DelegatedFrameHostAndroid);
103 }; 104 };
104 105
105 } // namespace ui 106 } // namespace ui
106 107
107 #endif // UI_ANDROID_DELEGATED_FRAME_HOST_ANDROID_H_ 108 #endif // UI_ANDROID_DELEGATED_FRAME_HOST_ANDROID_H_
OLDNEW
« no previous file with comments | « ui/android/context_provider_factory.cc ('k') | ui/android/delegated_frame_host_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698