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

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

Issue 10073002: TabContents -> WebContentsImpl, part 11. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: missed a few Created 8 years, 8 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
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_HELPER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HELPER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HELPER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HELPER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <map> 10 #include <map>
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 // 70 //
71 // OPTIMIZED TAB SWITCHING 71 // OPTIMIZED TAB SWITCHING
72 // 72 //
73 // When a RenderWidgetHost is in a background tab, it is flagged as hidden. 73 // When a RenderWidgetHost is in a background tab, it is flagged as hidden.
74 // This causes the corresponding RenderWidget to stop sending UpdateRect 74 // This causes the corresponding RenderWidget to stop sending UpdateRect
75 // messages. The RenderWidgetHost also discards its backingstore when it is 75 // messages. The RenderWidgetHost also discards its backingstore when it is
76 // hidden, which helps free up memory. As a result, when a RenderWidgetHost 76 // hidden, which helps free up memory. As a result, when a RenderWidgetHost
77 // is restored, it can be momentarily without a backingstore. (Restoring a 77 // is restored, it can be momentarily without a backingstore. (Restoring a
78 // RenderWidgetHost results in a WasRestored message being sent to the 78 // RenderWidgetHost results in a WasRestored message being sent to the
79 // RenderWidget, which triggers a full UpdateRect message.) This can lead to 79 // RenderWidget, which triggers a full UpdateRect message.) This can lead to
80 // an observed rendering glitch as the TabContents will just have to fill 80 // an observed rendering glitch as the WebContentsImpl will just have to fill
81 // white overtop the RenderWidgetHost until the RenderWidgetHost receives a 81 // white overtop the RenderWidgetHost until the RenderWidgetHost receives a
82 // UpdateRect message to refresh its backingstore. 82 // UpdateRect message to refresh its backingstore.
83 // 83 //
84 // To avoid this 'white flash', the RenderWidgetHost again makes use of the 84 // To avoid this 'white flash', the RenderWidgetHost again makes use of the
85 // RenderWidgetHelper's WaitForUpdateMsg method. When the RenderWidgetHost's 85 // RenderWidgetHelper's WaitForUpdateMsg method. When the RenderWidgetHost's
86 // GetBackingStore method is called, it will call WaitForUpdateMsg if it has 86 // GetBackingStore method is called, it will call WaitForUpdateMsg if it has
87 // no backingstore. 87 // no backingstore.
88 // 88 //
89 // TRANSPORT DIB CREATION 89 // TRANSPORT DIB CREATION
90 // 90 //
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 216
217 // The next routing id to use. 217 // The next routing id to use.
218 base::AtomicSequenceNumber next_routing_id_; 218 base::AtomicSequenceNumber next_routing_id_;
219 219
220 content::ResourceDispatcherHostImpl* resource_dispatcher_host_; 220 content::ResourceDispatcherHostImpl* resource_dispatcher_host_;
221 221
222 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHelper); 222 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHelper);
223 }; 223 };
224 224
225 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HELPER_H_ 225 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HELPER_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host_unittest.cc ('k') | content/browser/renderer_host/render_widget_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698