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

Side by Side Diff: content/browser/renderer_host/delegated_frame_host.h

Issue 2888043004: [cc] Add and plumb CFS::DidNotProduceFrame. (Closed)
Patch Set: remove ExternalBFS::OnDidFinishFrame and related ack tracking. Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 // Given a RenderWidgetHostViewBase that renders to a Surface that is 164 // Given a RenderWidgetHostViewBase that renders to a Surface that is
165 // contained within this class' Surface, find the relative transform between 165 // contained within this class' Surface, find the relative transform between
166 // the Surfaces and apply it to a point. Returns false if a Surface has not 166 // the Surfaces and apply it to a point. Returns false if a Surface has not
167 // yet been created or if |target_view| is not a descendant RWHV from our 167 // yet been created or if |target_view| is not a descendant RWHV from our
168 // client. 168 // client.
169 bool TransformPointToCoordSpaceForView(const gfx::Point& point, 169 bool TransformPointToCoordSpaceForView(const gfx::Point& point,
170 RenderWidgetHostViewBase* target_view, 170 RenderWidgetHostViewBase* target_view,
171 gfx::Point* transformed_point); 171 gfx::Point* transformed_point);
172 172
173 void SetNeedsBeginFrames(bool needs_begin_frames); 173 void SetNeedsBeginFrames(bool needs_begin_frames);
174 void BeginFrameDidNotSwap(const cc::BeginFrameAck& ack); 174 void BeginFrameDidNotProduceFrame(const cc::BeginFrameAck& ack);
175 175
176 // Exposed for tests. 176 // Exposed for tests.
177 cc::SurfaceId SurfaceIdForTesting() const { 177 cc::SurfaceId SurfaceIdForTesting() const {
178 return cc::SurfaceId(frame_sink_id_, local_surface_id_); 178 return cc::SurfaceId(frame_sink_id_, local_surface_id_);
179 } 179 }
180 180
181 bool HasFrameForTesting() const { return has_frame_; } 181 bool HasFrameForTesting() const { return has_frame_; }
182 182
183 void OnCompositingDidCommitForTesting(ui::Compositor* compositor) { 183 void OnCompositingDidCommitForTesting(ui::Compositor* compositor) {
184 OnCompositingDidCommit(compositor); 184 OnCompositingDidCommit(compositor);
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 bool has_frame_ = false; 323 bool has_frame_ = false;
324 cc::mojom::MojoCompositorFrameSinkClient* renderer_compositor_frame_sink_ = 324 cc::mojom::MojoCompositorFrameSinkClient* renderer_compositor_frame_sink_ =
325 nullptr; 325 nullptr;
326 326
327 std::unique_ptr<viz::FrameEvictor> frame_evictor_; 327 std::unique_ptr<viz::FrameEvictor> frame_evictor_;
328 }; 328 };
329 329
330 } // namespace content 330 } // namespace content
331 331
332 #endif // CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ 332 #endif // CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698