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

Side by Side Diff: android_webview/browser/render_thread_manager.h

Issue 1943963003: WIP Handle AwContents needing multiple live functors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 ANDROID_WEBVIEW_BROWSER_RENDER_THREAD_MANAGER_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_RENDER_THREAD_MANAGER_H_
6 #define ANDROID_WEBVIEW_BROWSER_RENDER_THREAD_MANAGER_H_ 6 #define ANDROID_WEBVIEW_BROWSER_RENDER_THREAD_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "android_webview/browser/compositor_frame_consumer.h" 10 #include "android_webview/browser/compositor_frame_consumer.h"
(...skipping 28 matching lines...) Expand all
39 RenderThreadManagerClient* client, 39 RenderThreadManagerClient* client,
40 const scoped_refptr<base::SingleThreadTaskRunner>& ui_loop); 40 const scoped_refptr<base::SingleThreadTaskRunner>& ui_loop);
41 ~RenderThreadManager() override; 41 ~RenderThreadManager() override;
42 42
43 // This function can be called from any thread. 43 // This function can be called from any thread.
44 void ClientRequestInvokeGL(bool for_idle); 44 void ClientRequestInvokeGL(bool for_idle);
45 45
46 // CompositorFrameConsumer methods. 46 // CompositorFrameConsumer methods.
47 void SetCompositorFrameProducer( 47 void SetCompositorFrameProducer(
48 CompositorFrameProducer* compositor_frame_producer) override; 48 CompositorFrameProducer* compositor_frame_producer) override;
49 CompositorFrameProducer* GetCompositorFrameProducer() override;
49 void SetScrollOffsetOnUI(gfx::Vector2d scroll_offset) override; 50 void SetScrollOffsetOnUI(gfx::Vector2d scroll_offset) override;
50 void SetFrameOnUI(std::unique_ptr<ChildFrame> frame) override; 51 void SetFrameOnUI(std::unique_ptr<ChildFrame> frame) override;
51 void InitializeHardwareDrawIfNeededOnUI() override; 52 void InitializeHardwareDrawIfNeededOnUI() override;
52 ParentCompositorDrawConstraints GetParentDrawConstraintsOnUI() const override; 53 ParentCompositorDrawConstraints GetParentDrawConstraintsOnUI() const override;
53 void SwapReturnedResourcesOnUI( 54 void SwapReturnedResourcesOnUI(
54 ReturnedResourcesMap* returned_resource_map) override; 55 ReturnedResourcesMap* returned_resource_map) override;
55 bool ReturnedResourcesEmptyOnUI() const override; 56 bool ReturnedResourcesEmptyOnUI() const override;
56 std::unique_ptr<ChildFrame> PassUncommittedFrameOnUI() override; 57 std::unique_ptr<ChildFrame> PassUncommittedFrameOnUI() override;
57 bool HasFrameOnUI() const override; 58 bool HasFrameOnUI() const override;
58 void DeleteHardwareRendererOnUI() override; 59 void DeleteHardwareRendererOnUI() override;
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 base::Closure request_draw_gl_closure_; 115 base::Closure request_draw_gl_closure_;
115 116
116 base::WeakPtrFactory<RenderThreadManager> weak_factory_on_ui_thread_; 117 base::WeakPtrFactory<RenderThreadManager> weak_factory_on_ui_thread_;
117 118
118 DISALLOW_COPY_AND_ASSIGN(RenderThreadManager); 119 DISALLOW_COPY_AND_ASSIGN(RenderThreadManager);
119 }; 120 };
120 121
121 } // namespace android_webview 122 } // namespace android_webview
122 123
123 #endif // ANDROID_WEBVIEW_BROWSER_RENDER_THREAD_MANAGER_H_ 124 #endif // ANDROID_WEBVIEW_BROWSER_RENDER_THREAD_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698