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

Side by Side Diff: content/browser/android/synchronous_compositor_host.h

Issue 2383933002: Added message filter receiving frames from compositor
Patch Set: Created 4 years, 2 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 RenderWidgetHostViewAndroid* rwhva, 52 RenderWidgetHostViewAndroid* rwhva,
53 WebContents* web_contents); 53 WebContents* web_contents);
54 54
55 ~SynchronousCompositorHost() override; 55 ~SynchronousCompositorHost() override;
56 56
57 // SynchronousCompositor overrides. 57 // SynchronousCompositor overrides.
58 SynchronousCompositor::Frame DemandDrawHw( 58 SynchronousCompositor::Frame DemandDrawHw(
59 const gfx::Size& viewport_size, 59 const gfx::Size& viewport_size,
60 const gfx::Rect& viewport_rect_for_tile_priority, 60 const gfx::Rect& viewport_rect_for_tile_priority,
61 const gfx::Transform& transform_for_tile_priority) override; 61 const gfx::Transform& transform_for_tile_priority) override;
62 void DemandDrawHwAsync( 62 scoped_refptr<SynchronousCompositor::FrameFuture> DemandDrawHwAsync(
63 const gfx::Size& viewport_size, 63 const gfx::Size& viewport_size,
64 const gfx::Rect& viewport_rect_for_tile_priority, 64 const gfx::Rect& viewport_rect_for_tile_priority,
65 const gfx::Transform& transform_for_tile_priority) override; 65 const gfx::Transform& transform_for_tile_priority) override;
66 bool DemandDrawSw(SkCanvas* canvas) override; 66 bool DemandDrawSw(SkCanvas* canvas) override;
67 void ReturnResources(uint32_t compositor_frame_sink_id, 67 void ReturnResources(uint32_t compositor_frame_sink_id,
68 const cc::ReturnedResourceArray& resources) override; 68 const cc::ReturnedResourceArray& resources) override;
69 void SetMemoryPolicy(size_t bytes_limit) override; 69 void SetMemoryPolicy(size_t bytes_limit) override;
70 void DidChangeRootLayerScrollOffset( 70 void DidChangeRootLayerScrollOffset(
71 const gfx::ScrollOffset& root_offset) override; 71 const gfx::ScrollOffset& root_offset) override;
72 void SynchronouslyZoomBy(float zoom_delta, const gfx::Point& anchor) override; 72 void SynchronouslyZoomBy(float zoom_delta, const gfx::Point& anchor) override;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 bool need_animate_scroll_; 121 bool need_animate_scroll_;
122 uint32_t need_invalidate_count_; 122 uint32_t need_invalidate_count_;
123 uint32_t did_activate_pending_tree_count_; 123 uint32_t did_activate_pending_tree_count_;
124 124
125 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorHost); 125 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorHost);
126 }; 126 };
127 127
128 } // namespace content 128 } // namespace content
129 129
130 #endif // CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_HOST_H_ 130 #endif // CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_HOST_H_
OLDNEW
« no previous file with comments | « android_webview/browser/render_thread_manager.cc ('k') | content/browser/android/synchronous_compositor_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698