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

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

Issue 2686243002: content/ui[Android]: Remove ContextProviderFactory. (Closed)
Patch Set: Addressed comments. Created 3 years, 10 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 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 22 matching lines...) Expand all
33 : public cc::SurfaceFactoryClient { 33 : public cc::SurfaceFactoryClient {
34 public: 34 public:
35 class Client { 35 class Client {
36 public: 36 public:
37 virtual void SetBeginFrameSource( 37 virtual void SetBeginFrameSource(
38 cc::BeginFrameSource* begin_frame_source) = 0; 38 cc::BeginFrameSource* begin_frame_source) = 0;
39 virtual void ReturnResources(const cc::ReturnedResourceArray&) = 0; 39 virtual void ReturnResources(const cc::ReturnedResourceArray&) = 0;
40 }; 40 };
41 41
42 DelegatedFrameHostAndroid(ViewAndroid* view, 42 DelegatedFrameHostAndroid(ViewAndroid* view,
43 cc::SurfaceManager* surface_manager,
43 SkColor background_color, 44 SkColor background_color,
44 Client* client, 45 Client* client,
45 const cc::FrameSinkId& frame_sink_id); 46 const cc::FrameSinkId& frame_sink_id);
46 47
47 ~DelegatedFrameHostAndroid() override; 48 ~DelegatedFrameHostAndroid() override;
48 49
49 void SubmitCompositorFrame(cc::CompositorFrame frame, 50 void SubmitCompositorFrame(cc::CompositorFrame frame,
50 cc::SurfaceFactory::DrawCallback draw_callback); 51 cc::SurfaceFactory::DrawCallback draw_callback);
51 52
52 void DestroyDelegatedContent(); 53 void DestroyDelegatedContent();
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 scoped_refptr<cc::Layer> background_layer_; 111 scoped_refptr<cc::Layer> background_layer_;
111 112
112 gfx::Size container_size_in_dip_; 113 gfx::Size container_size_in_dip_;
113 114
114 DISALLOW_COPY_AND_ASSIGN(DelegatedFrameHostAndroid); 115 DISALLOW_COPY_AND_ASSIGN(DelegatedFrameHostAndroid);
115 }; 116 };
116 117
117 } // namespace ui 118 } // namespace ui
118 119
119 #endif // UI_ANDROID_DELEGATED_FRAME_HOST_ANDROID_H_ 120 #endif // UI_ANDROID_DELEGATED_FRAME_HOST_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698