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

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

Issue 2888043004: [cc] Add and plumb CFS::DidNotProduceFrame. (Closed)
Patch Set: address nits, rename to DidNotProduceFrame. 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_RENDER_WIDGET_HOST_VIEW_BASE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 // RendererCompositorFrameSink is created in the renderer. The view is 222 // RendererCompositorFrameSink is created in the renderer. The view is
223 // expected not to return resources belonging to the old 223 // expected not to return resources belonging to the old
224 // RendererCompositorFrameSink after this method finishes. 224 // RendererCompositorFrameSink after this method finishes.
225 virtual void DidCreateNewRendererCompositorFrameSink( 225 virtual void DidCreateNewRendererCompositorFrameSink(
226 cc::mojom::MojoCompositorFrameSinkClient* 226 cc::mojom::MojoCompositorFrameSinkClient*
227 renderer_compositor_frame_sink) = 0; 227 renderer_compositor_frame_sink) = 0;
228 228
229 virtual void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id, 229 virtual void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id,
230 cc::CompositorFrame frame) = 0; 230 cc::CompositorFrame frame) = 0;
231 231
232 virtual void OnBeginFrameDidNotSwap(const cc::BeginFrameAck& ack) {} 232 virtual void OnDidNotProduceFrame(const cc::BeginFrameAck& ack) {}
233 virtual void OnSurfaceChanged(const cc::SurfaceInfo& surface_info) {} 233 virtual void OnSurfaceChanged(const cc::SurfaceInfo& surface_info) {}
234 234
235 // This method exists to allow removing of displayed graphics, after a new 235 // This method exists to allow removing of displayed graphics, after a new
236 // page has been loaded, to prevent the displayed URL from being out of sync 236 // page has been loaded, to prevent the displayed URL from being out of sync
237 // with what is visible on screen. 237 // with what is visible on screen.
238 virtual void ClearCompositorFrame() = 0; 238 virtual void ClearCompositorFrame() = 0;
239 239
240 // Because the associated remote WebKit instance can asynchronously 240 // Because the associated remote WebKit instance can asynchronously
241 // prevent-default on a dispatched touch event, the touch events are queued in 241 // prevent-default on a dispatched touch event, the touch events are queued in
242 // the GestureRecognizer until invocation of ProcessAckedTouchEvent releases 242 // the GestureRecognizer until invocation of ProcessAckedTouchEvent releases
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; 469 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_;
470 470
471 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; 471 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_;
472 472
473 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); 473 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase);
474 }; 474 };
475 475
476 } // namespace content 476 } // namespace content
477 477
478 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 478 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698