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

Unified Diff: content/renderer/android/synchronous_compositor_output_surface.h

Issue 1970863002: sync compositor: Memory policy async IPC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: drop os id 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/android/synchronous_compositor_output_surface.h
diff --git a/content/renderer/android/synchronous_compositor_output_surface.h b/content/renderer/android/synchronous_compositor_output_surface.h
index 87a2fa6bd3ca574cc63d9f45126025b2f7273d35..71f3c981a38063abc6267a544f1865bcd8fc2ad8 100644
--- a/content/renderer/android/synchronous_compositor_output_surface.h
+++ b/content/renderer/android/synchronous_compositor_output_surface.h
@@ -29,6 +29,7 @@ class CompositorFrameMetadata;
namespace IPC {
class Message;
+class Sender;
}
namespace content {
@@ -87,7 +88,6 @@ class SynchronousCompositorOutputSurface
const gfx::Rect& viewport_rect_for_tile_priority,
const gfx::Transform& transform_for_tile_priority);
void DemandDrawSw(SkCanvas* canvas);
- void SetMemoryPolicy(size_t bytes_limit);
void SetTreeActivationCallback(const base::Closure& callback);
void GetMessagesToDeliver(
std::vector<std::unique_ptr<IPC::Message>>* messages);
@@ -100,18 +100,21 @@ class SynchronousCompositorOutputSurface
const gfx::Rect& viewport,
const gfx::Rect& clip,
bool hardware_draw);
+ bool Send(IPC::Message* message);
bool CalledOnValidThread() const;
void CancelFallbackTick();
void FallbackTickFired();
// IPC handlers.
+ void SetMemoryPolicy(size_t bytes_limit);
void OnReclaimResources(uint32_t output_surface_id,
const cc::CompositorFrameAck& ack);
const int routing_id_;
const uint32_t output_surface_id_;
- SynchronousCompositorRegistry* const registry_; // unowned
+ SynchronousCompositorRegistry* const registry_; // Not owned.
+ IPC::Sender* const sender_; // Not owned.
bool registered_;
// Not owned.

Powered by Google App Engine
This is Rietveld 408576698