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

Side by Side Diff: content/renderer/render_widget.h

Issue 8139020: Turning the threaded compositor into a runtime option. This CL (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « content/renderer/render_view.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_RENDER_WIDGET_H_ 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_
6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 virtual bool WillHandleMouseEvent(const WebKit::WebMouseEvent& event); 316 virtual bool WillHandleMouseEvent(const WebKit::WebMouseEvent& event);
317 317
318 // Called by OnHandleInputEvent() to notify subclasses that a mouse event was 318 // Called by OnHandleInputEvent() to notify subclasses that a mouse event was
319 // just handled. 319 // just handled.
320 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event) {} 320 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event) {}
321 321
322 // Called by OnHandleInputEvent() to notify subclasses that a touch event was 322 // Called by OnHandleInputEvent() to notify subclasses that a touch event was
323 // just handled. 323 // just handled.
324 virtual void DidHandleTouchEvent(const WebKit::WebTouchEvent& event) {} 324 virtual void DidHandleTouchEvent(const WebKit::WebTouchEvent& event) {}
325 325
326 // Should return true if the underlying WebWidget is responsible for
327 // the scheduling of compositing requests.
328 virtual bool WebWidgetHandlesCompositorScheduling() const;
329
326 // Routing ID that allows us to communicate to the parent browser process 330 // Routing ID that allows us to communicate to the parent browser process
327 // RenderWidgetHost. When MSG_ROUTING_NONE, no messages may be sent. 331 // RenderWidgetHost. When MSG_ROUTING_NONE, no messages may be sent.
328 int32 routing_id_; 332 int32 routing_id_;
329 333
330 // We are responsible for destroying this object via its Close method. 334 // We are responsible for destroying this object via its Close method.
331 WebKit::WebWidget* webwidget_; 335 WebKit::WebWidget* webwidget_;
332 336
333 // Set to the ID of the view that initiated creating this view, if any. When 337 // Set to the ID of the view that initiated creating this view, if any. When
334 // the view was initiated by the browser (the common case), this will be 338 // the view was initiated by the browser (the common case), this will be
335 // MSG_ROUTING_NONE. This is used in determining ownership when opening 339 // MSG_ROUTING_NONE. This is used in determining ownership when opening
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 bool animation_task_posted_; 461 bool animation_task_posted_;
458 bool invalidation_task_posted_; 462 bool invalidation_task_posted_;
459 463
460 bool has_disable_gpu_vsync_switch_; 464 bool has_disable_gpu_vsync_switch_;
461 base::TimeTicks last_do_deferred_update_time_; 465 base::TimeTicks last_do_deferred_update_time_;
462 466
463 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 467 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
464 }; 468 };
465 469
466 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 470 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW
« no previous file with comments | « content/renderer/render_view.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698