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

Side by Side Diff: content/public/browser/android/synchronous_compositor.h

Issue 2418383002: sync compositor: Signal async frame on IO thread (Closed)
Patch Set: typo Created 4 years, 1 month 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_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_H_
6 #define CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_H_ 6 #define CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 // "On demand" hardware draw. Parameters are used by compositor for this draw. 80 // "On demand" hardware draw. Parameters are used by compositor for this draw.
81 // |viewport_size| is the current size to improve results during resize. 81 // |viewport_size| is the current size to improve results during resize.
82 // |viewport_rect_for_tile_priority| and |transform_for_tile_priority| are 82 // |viewport_rect_for_tile_priority| and |transform_for_tile_priority| are
83 // used to customize the tiling decisions of compositor. 83 // used to customize the tiling decisions of compositor.
84 virtual Frame DemandDrawHw( 84 virtual Frame DemandDrawHw(
85 const gfx::Size& viewport_size, 85 const gfx::Size& viewport_size,
86 const gfx::Rect& viewport_rect_for_tile_priority, 86 const gfx::Rect& viewport_rect_for_tile_priority,
87 const gfx::Transform& transform_for_tile_priority) = 0; 87 const gfx::Transform& transform_for_tile_priority) = 0;
88 88
89 // Same as DemandDrawHw, but uses asynchronous IPC messages. Calls 89 // Same as DemandDrawHw, but uses asynchronous IPC messages.
90 // SynchronousCompositorClient::OnDrawHardwareProcessFrame to return the 90 virtual scoped_refptr<FrameFuture> DemandDrawHwAsync(
91 // frame.
92 virtual void DemandDrawHwAsync(
93 const gfx::Size& viewport_size, 91 const gfx::Size& viewport_size,
94 const gfx::Rect& viewport_rect_for_tile_priority, 92 const gfx::Rect& viewport_rect_for_tile_priority,
95 const gfx::Transform& transform_for_tile_priority) = 0; 93 const gfx::Transform& transform_for_tile_priority) = 0;
96 94
97 // For delegated rendering, return resources from parent compositor to this. 95 // For delegated rendering, return resources from parent compositor to this.
98 // Note that all resources must be returned before ReleaseHwDraw. 96 // Note that all resources must be returned before ReleaseHwDraw.
99 virtual void ReturnResources(uint32_t compositor_frame_sink_id, 97 virtual void ReturnResources(uint32_t compositor_frame_sink_id,
100 const cc::ReturnedResourceArray& resources) = 0; 98 const cc::ReturnedResourceArray& resources) = 0;
101 99
102 // "On demand" SW draw, into the supplied canvas (observing the transform 100 // "On demand" SW draw, into the supplied canvas (observing the transform
(...skipping 17 matching lines...) Expand all
120 // and if any input animation is active, it should tick now. 118 // and if any input animation is active, it should tick now.
121 virtual void OnComputeScroll(base::TimeTicks animation_time) = 0; 119 virtual void OnComputeScroll(base::TimeTicks animation_time) = 0;
122 120
123 protected: 121 protected:
124 virtual ~SynchronousCompositor() {} 122 virtual ~SynchronousCompositor() {}
125 }; 123 };
126 124
127 } // namespace content 125 } // namespace content
128 126
129 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_H_ 127 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698