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

Side by Side Diff: content/renderer/gpu/render_widget_compositor.h

Issue 429393003: Send idle notifications to V8 after commit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 years, 3 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ 5 #ifndef CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_
6 #define CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ 6 #define CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 virtual void DidAbortSwapBuffers() OVERRIDE; 146 virtual void DidAbortSwapBuffers() OVERRIDE;
147 147
148 private: 148 private:
149 RenderWidgetCompositor(RenderWidget* widget, bool threaded); 149 RenderWidgetCompositor(RenderWidget* widget, bool threaded);
150 150
151 void Initialize(cc::LayerTreeSettings settings); 151 void Initialize(cc::LayerTreeSettings settings);
152 152
153 bool threaded_; 153 bool threaded_;
154 RenderWidget* widget_; 154 RenderWidget* widget_;
155 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; 155 scoped_ptr<cc::LayerTreeHost> layer_tree_host_;
156
157 bool send_v8_idle_notification_after_commit_;
158 base::TimeTicks begin_main_frame_time_;
159 // The time interval between BeginMainFrame calls, provided by the scheduler.
160 base::TimeDelta begin_main_frame_interval_;
156 }; 161 };
157 162
158 } // namespace content 163 } // namespace content
159 164
160 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ 165 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698