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

Side by Side Diff: blimp/client/core/render_widget/blimp_document_manager.h

Issue 2459823003: blimp: Use SwapPromises for readback API. (Closed)
Patch Set: comment updated Created 4 years, 1 month 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 BLIMP_CLIENT_CORE_RENDER_WIDGET_BLIMP_DOCUMENT_MANAGER_H_ 5 #ifndef BLIMP_CLIENT_CORE_RENDER_WIDGET_BLIMP_DOCUMENT_MANAGER_H_
6 #define BLIMP_CLIENT_CORE_RENDER_WIDGET_BLIMP_DOCUMENT_MANAGER_H_ 6 #define BLIMP_CLIENT_CORE_RENDER_WIDGET_BLIMP_DOCUMENT_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 23 matching lines...) Expand all
34 int blimp_contents_id, 34 int blimp_contents_id,
35 RenderWidgetFeature* render_widget_feature, 35 RenderWidgetFeature* render_widget_feature,
36 BlimpCompositorDependencies* compositor_dependencies); 36 BlimpCompositorDependencies* compositor_dependencies);
37 ~BlimpDocumentManager() override; 37 ~BlimpDocumentManager() override;
38 38
39 void SetVisible(bool visible); 39 void SetVisible(bool visible);
40 bool visible() const { return visible_; } 40 bool visible() const { return visible_; }
41 41
42 bool OnTouchEvent(const ui::MotionEvent& motion_event); 42 bool OnTouchEvent(const ui::MotionEvent& motion_event);
43 43
44 // Notifies |callback| when all pending commits on the active BlimpCompositor 44 void RequestCopyOfCompositorOutput(
45 // have been drawn to the screen. If the active compositor is destroyed or 45 std::unique_ptr<cc::CopyOutputRequest> copy_request,
46 // becomes hidden |callback| will be notified. 46 bool flush_pending_update);
47 void NotifyWhenDonePendingCommits(base::Closure callback);
48 47
49 // Sends input event to the engine, virtual for testing. 48 // Sends input event to the engine, virtual for testing.
50 virtual void SendWebGestureEvent(int document_id, 49 virtual void SendWebGestureEvent(int document_id,
51 const blink::WebGestureEvent& gesture_event); 50 const blink::WebGestureEvent& gesture_event);
52 51
53 // Sends compositor message to the engine, virtual for testing. 52 // Sends compositor message to the engine, virtual for testing.
54 virtual void SendCompositorMessage( 53 virtual void SendCompositorMessage(
55 int document_id, 54 int document_id,
56 const cc::proto::CompositorMessage& message); 55 const cc::proto::CompositorMessage& message);
57 56
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 99
101 BlimpCompositorDependencies* compositor_dependencies_; 100 BlimpCompositorDependencies* compositor_dependencies_;
102 101
103 DISALLOW_COPY_AND_ASSIGN(BlimpDocumentManager); 102 DISALLOW_COPY_AND_ASSIGN(BlimpDocumentManager);
104 }; 103 };
105 104
106 } // namespace client 105 } // namespace client
107 } // namespace blimp 106 } // namespace blimp
108 107
109 #endif // BLIMP_CLIENT_CORE_RENDER_WIDGET_BLIMP_DOCUMENT_MANAGER_H_ 108 #endif // BLIMP_CLIENT_CORE_RENDER_WIDGET_BLIMP_DOCUMENT_MANAGER_H_
OLDNEW
« no previous file with comments | « blimp/client/core/contents/blimp_contents_view_impl.cc ('k') | blimp/client/core/render_widget/blimp_document_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698