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

Side by Side Diff: mojo/services/html_viewer/weblayertreeview_impl.h

Issue 904633004: [cc]: Add a BeginMainFrameNotExpectedSoon signal and route it to the RendererScheduler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix mojo and webview. Created 5 years, 10 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 MOJO_SERVICES_HTML_VIEWER_WEBLAYERTREEVIEW_IMPL_H_ 5 #ifndef MOJO_SERVICES_HTML_VIEWER_WEBLAYERTREEVIEW_IMPL_H_
6 #define MOJO_SERVICES_HTML_VIEWER_WEBLAYERTREEVIEW_IMPL_H_ 6 #define MOJO_SERVICES_HTML_VIEWER_WEBLAYERTREEVIEW_IMPL_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 mojo::GpuPtr gpu_service); 44 mojo::GpuPtr gpu_service);
45 virtual ~WebLayerTreeViewImpl(); 45 virtual ~WebLayerTreeViewImpl();
46 46
47 void set_widget(blink::WebWidget* widget) { widget_ = widget; } 47 void set_widget(blink::WebWidget* widget) { widget_ = widget; }
48 void set_view(mojo::View* view) { view_ = view; } 48 void set_view(mojo::View* view) { view_ = view; }
49 49
50 // cc::LayerTreeHostClient implementation. 50 // cc::LayerTreeHostClient implementation.
51 void WillBeginMainFrame() override; 51 void WillBeginMainFrame() override;
52 void DidBeginMainFrame() override; 52 void DidBeginMainFrame() override;
53 void BeginMainFrame(const cc::BeginFrameArgs& args) override; 53 void BeginMainFrame(const cc::BeginFrameArgs& args) override;
54 void BeginMainFrameNotExpectedSoon() override;
54 void Layout() override; 55 void Layout() override;
55 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, 56 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta,
56 const gfx::Vector2dF& outer_delta, 57 const gfx::Vector2dF& outer_delta,
57 const gfx::Vector2dF& elastic_overscroll_delta, 58 const gfx::Vector2dF& elastic_overscroll_delta,
58 float page_scale, 59 float page_scale,
59 float top_controls_delta) override; 60 float top_controls_delta) override;
60 void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta, 61 void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta,
61 float page_scale, 62 float page_scale,
62 float top_controls_delta) override; 63 float top_controls_delta) override;
63 void RequestNewOutputSurface() override; 64 void RequestNewOutputSurface() override;
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 main_thread_compositor_task_runner_; 128 main_thread_compositor_task_runner_;
128 base::WeakPtr<WebLayerTreeViewImpl> main_thread_bound_weak_ptr_; 129 base::WeakPtr<WebLayerTreeViewImpl> main_thread_bound_weak_ptr_;
129 130
130 base::WeakPtrFactory<WebLayerTreeViewImpl> weak_factory_; 131 base::WeakPtrFactory<WebLayerTreeViewImpl> weak_factory_;
131 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImpl); 132 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImpl);
132 }; 133 };
133 134
134 } // namespace html_viewer 135 } // namespace html_viewer
135 136
136 #endif // MOJO_SERVICES_HTML_VIEWER_WEBLAYERTREEVIEW_IMPL_H_ 137 #endif // MOJO_SERVICES_HTML_VIEWER_WEBLAYERTREEVIEW_IMPL_H_
OLDNEW
« no previous file with comments | « content/test/web_layer_tree_view_impl_for_testing.h ('k') | mojo/services/html_viewer/weblayertreeview_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698