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

Side by Side Diff: content/browser/android/synchronous_compositor_host.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_HOST_H_ 5 #ifndef CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_HOST_H_
6 #define CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_HOST_H_ 6 #define CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_HOST_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 // SynchronousCompositor overrides. 51 // SynchronousCompositor overrides.
52 SynchronousCompositor::Frame DemandDrawHw( 52 SynchronousCompositor::Frame DemandDrawHw(
53 const gfx::Size& surface_size, 53 const gfx::Size& surface_size,
54 const gfx::Transform& transform, 54 const gfx::Transform& transform,
55 const gfx::Rect& viewport, 55 const gfx::Rect& viewport,
56 const gfx::Rect& clip, 56 const gfx::Rect& clip,
57 const gfx::Rect& viewport_rect_for_tile_priority, 57 const gfx::Rect& viewport_rect_for_tile_priority,
58 const gfx::Transform& transform_for_tile_priority) override; 58 const gfx::Transform& transform_for_tile_priority) override;
59 bool DemandDrawSw(SkCanvas* canvas) override; 59 bool DemandDrawSw(SkCanvas* canvas) override;
60 void ReturnResources(uint32_t output_surface_id, 60 void ReturnResources(uint32_t output_surface_id,
61 const cc::CompositorFrameAck& frame_ack) override; 61 const cc::ReturnedResourceArray& resources) override;
62 void SetMemoryPolicy(size_t bytes_limit) override; 62 void SetMemoryPolicy(size_t bytes_limit) override;
63 void DidChangeRootLayerScrollOffset( 63 void DidChangeRootLayerScrollOffset(
64 const gfx::ScrollOffset& root_offset) override; 64 const gfx::ScrollOffset& root_offset) override;
65 void SynchronouslyZoomBy(float zoom_delta, const gfx::Point& anchor) override; 65 void SynchronouslyZoomBy(float zoom_delta, const gfx::Point& anchor) override;
66 void OnComputeScroll(base::TimeTicks animation_time) override; 66 void OnComputeScroll(base::TimeTicks animation_time) override;
67 67
68 void DidOverscroll(const DidOverscrollParams& over_scroll_params); 68 void DidOverscroll(const DidOverscrollParams& over_scroll_params);
69 void DidSendBeginFrame(); 69 void DidSendBeginFrame();
70 bool OnMessageReceived(const IPC::Message& message); 70 bool OnMessageReceived(const IPC::Message& message);
71 71
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 bool need_animate_scroll_; 104 bool need_animate_scroll_;
105 uint32_t need_invalidate_count_; 105 uint32_t need_invalidate_count_;
106 uint32_t did_activate_pending_tree_count_; 106 uint32_t did_activate_pending_tree_count_;
107 107
108 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorHost); 108 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorHost);
109 }; 109 };
110 110
111 } // namespace content 111 } // namespace content
112 112
113 #endif // CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_HOST_H_ 113 #endif // CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_HOST_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_unittest.cc ('k') | content/browser/android/synchronous_compositor_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698