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

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

Issue 8498036: Delay UpdateRect until the SwapBuffers callback when accelerated compositing is on. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: allow multiple update messages in flight Created 9 years 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
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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <string> 10 #include <string>
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 void Paste(); 443 void Paste();
444 void PasteAndMatchStyle(); 444 void PasteAndMatchStyle();
445 void Delete(); 445 void Delete();
446 void SelectAll(); 446 void SelectAll();
447 447
448 // Called when the reponse to a pending mouse lock request has arrived. 448 // Called when the reponse to a pending mouse lock request has arrived.
449 // Returns true if |allowed| is true and the mouse has been successfully 449 // Returns true if |allowed| is true and the mouse has been successfully
450 // locked. 450 // locked.
451 bool GotResponseToLockMouseRequest(bool allowed); 451 bool GotResponseToLockMouseRequest(bool allowed);
452 452
453 #if defined(OS_MACOSX) || defined(UI_COMPOSITOR_IMAGE_TRANSPORT)
454 // Called by the view in response to AcceleratedSurfaceBuffersSwapped. 453 // Called by the view in response to AcceleratedSurfaceBuffersSwapped.
455 static void AcknowledgeSwapBuffers(int32 route_id, int gpu_host_id); 454 static void AcknowledgeSwapBuffers(int32 route_id, int gpu_host_id);
456 static void AcknowledgePostSubBuffer(int32 route_id, int gpu_host_id); 455 static void AcknowledgePostSubBuffer(int32 route_id, int gpu_host_id);
457 #endif
458 456
459 protected: 457 protected:
460 // Internal implementation of the public Forward*Event() methods. 458 // Internal implementation of the public Forward*Event() methods.
461 void ForwardInputEvent(const WebKit::WebInputEvent& input_event, 459 void ForwardInputEvent(const WebKit::WebInputEvent& input_event,
462 int event_size); 460 int event_size);
463 461
464 // Called when we receive a notification indicating that the renderer 462 // Called when we receive a notification indicating that the renderer
465 // process has gone. This will reset our state so that our state will be 463 // process has gone. This will reset our state so that our state will be
466 // consistent if a new renderer is created. 464 // consistent if a new renderer is created.
467 void RendererExited(base::TerminationStatus status, int exit_code); 465 void RendererExited(base::TerminationStatus status, int exit_code);
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 549
552 // IPC message handlers 550 // IPC message handlers
553 void OnMsgRenderViewReady(); 551 void OnMsgRenderViewReady();
554 void OnMsgRenderViewGone(int status, int error_code); 552 void OnMsgRenderViewGone(int status, int error_code);
555 void OnMsgClose(); 553 void OnMsgClose();
556 void OnMsgRequestMove(const gfx::Rect& pos); 554 void OnMsgRequestMove(const gfx::Rect& pos);
557 void OnMsgSetTooltipText(const string16& tooltip_text, 555 void OnMsgSetTooltipText(const string16& tooltip_text,
558 WebKit::WebTextDirection text_direction_hint); 556 WebKit::WebTextDirection text_direction_hint);
559 void OnMsgPaintAtSizeAck(int tag, const gfx::Size& size); 557 void OnMsgPaintAtSizeAck(int tag, const gfx::Size& size);
560 void OnMsgUpdateRect(const ViewHostMsg_UpdateRect_Params& params); 558 void OnMsgUpdateRect(const ViewHostMsg_UpdateRect_Params& params);
559 void OnMsgUpdateIsDelayed();
561 void OnMsgInputEventAck(WebKit::WebInputEvent::Type event_type, 560 void OnMsgInputEventAck(WebKit::WebInputEvent::Type event_type,
562 bool processed); 561 bool processed);
563 virtual void OnMsgFocus(); 562 virtual void OnMsgFocus();
564 virtual void OnMsgBlur(); 563 virtual void OnMsgBlur();
565 564
566 void OnMsgSetCursor(const WebCursor& cursor); 565 void OnMsgSetCursor(const WebCursor& cursor);
567 void OnMsgTextInputStateChanged(ui::TextInputType type, 566 void OnMsgTextInputStateChanged(ui::TextInputType type,
568 bool can_compose_inline); 567 bool can_compose_inline);
569 void OnMsgImeCompositionRangeChanged(const ui::Range& range); 568 void OnMsgImeCompositionRangeChanged(const ui::Range& range);
570 void OnMsgImeCancelComposition(); 569 void OnMsgImeCancelComposition();
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
815 gfx::Point last_scroll_offset_; 814 gfx::Point last_scroll_offset_;
816 815
817 bool pending_mouse_lock_request_; 816 bool pending_mouse_lock_request_;
818 817
819 base::WeakPtrFactory<RenderWidgetHost> weak_factory_; 818 base::WeakPtrFactory<RenderWidgetHost> weak_factory_;
820 819
821 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); 820 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost);
822 }; 821 };
823 822
824 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ 823 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_helper.cc ('k') | content/browser/renderer_host/render_widget_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698