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

Side by Side Diff: content/renderer/android/synchronous_compositor_output_surface.h

Issue 2147873003: cc: Dedup IPCs to return resources to client (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 5 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_ 5 #ifndef CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_
6 #define CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_ 6 #define CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 void DidActivatePendingTree(); 111 void DidActivatePendingTree();
112 void DeliverMessages(); 112 void DeliverMessages();
113 bool CalledOnValidThread() const; 113 bool CalledOnValidThread() const;
114 114
115 void CancelFallbackTick(); 115 void CancelFallbackTick();
116 void FallbackTickFired(); 116 void FallbackTickFired();
117 117
118 // IPC handlers. 118 // IPC handlers.
119 void SetMemoryPolicy(size_t bytes_limit); 119 void SetMemoryPolicy(size_t bytes_limit);
120 void OnReclaimResources(uint32_t output_surface_id, 120 void OnReclaimResources(uint32_t output_surface_id,
121 const cc::CompositorFrameAck& ack); 121 const cc::ReturnedResourceArray& resources);
122 122
123 const int routing_id_; 123 const int routing_id_;
124 const uint32_t output_surface_id_; 124 const uint32_t output_surface_id_;
125 SynchronousCompositorRegistry* const registry_; // Not owned. 125 SynchronousCompositorRegistry* const registry_; // Not owned.
126 IPC::Sender* const sender_; // Not owned. 126 IPC::Sender* const sender_; // Not owned.
127 bool registered_ = false; 127 bool registered_ = false;
128 128
129 // Not owned. 129 // Not owned.
130 SynchronousCompositorOutputSurfaceClient* sync_client_ = nullptr; 130 SynchronousCompositorOutputSurfaceClient* sync_client_ = nullptr;
131 131
(...skipping 27 matching lines...) Expand all
159 std::unique_ptr<cc::Display> display_; 159 std::unique_ptr<cc::Display> display_;
160 160
161 base::ThreadChecker thread_checker_; 161 base::ThreadChecker thread_checker_;
162 162
163 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorOutputSurface); 163 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorOutputSurface);
164 }; 164 };
165 165
166 } // namespace content 166 } // namespace content
167 167
168 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_ 168 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698