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

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

Issue 1958803003: sync compostor: Return resources async IPC (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 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 01315b8ebb5122cc848e1a87c9fa1fc58ec43637..87a2fa6bd3ca574cc63d9f45126025b2f7273d35 100644
--- a/content/renderer/android/synchronous_compositor_output_surface.h
+++ b/content/renderer/android/synchronous_compositor_output_surface.h
@@ -68,6 +68,7 @@ class SynchronousCompositorOutputSurface
~SynchronousCompositorOutputSurface() override;
void SetSyncClient(SynchronousCompositorOutputSurfaceClient* compositor);
+ bool OnMessageReceived(const IPC::Message& message);
// OutputSurface.
bool BindToClient(cc::OutputSurfaceClient* surface_client) override;
@@ -85,18 +86,12 @@ class SynchronousCompositorOutputSurface
const gfx::Rect& clip,
const gfx::Rect& viewport_rect_for_tile_priority,
const gfx::Transform& transform_for_tile_priority);
- void ReturnResources(uint32_t output_surface_id,
- const cc::CompositorFrameAck& frame_ack);
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);
- size_t GetMemoryPolicy() const {
hush (inactive) 2016/05/09 23:52:10 so... this function is not used by anybody?
boliu 2016/05/10 00:00:45 nope
- return memory_policy_.bytes_limit_when_visible;
- }
-
private:
class SoftwareDevice;
friend class SoftwareDevice;
@@ -110,6 +105,10 @@ class SynchronousCompositorOutputSurface
void CancelFallbackTick();
void FallbackTickFired();
+ // IPC handlers.
+ 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
« no previous file with comments | « content/common/android/sync_compositor_messages.cc ('k') | content/renderer/android/synchronous_compositor_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698