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

Side by Side Diff: content/public/test/render_view_test.cc

Issue 233093006: Stop disabling force_compositing_mode for background RenderViews. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: background: codemoved Created 6 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
« no previous file with comments | « content/public/browser/web_contents_delegate.cc ('k') | content/renderer/render_thread_impl.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) 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 #include "content/public/test/render_view_test.h" 5 #include "content/public/test/render_view_test.h"
6 6
7 #include "base/run_loop.h" 7 #include "base/run_loop.h"
8 #include "content/common/dom_storage/dom_storage_types.h" 8 #include "content/common/dom_storage/dom_storage_types.h"
9 #include "content/common/frame_messages.h" 9 #include "content/common/frame_messages.h"
10 #include "content/common/input_messages.h" 10 #include "content/common/input_messages.h"
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 RendererPreferences(), 188 RendererPreferences(),
189 WebPreferences(), 189 WebPreferences(),
190 kRouteId, 190 kRouteId,
191 kMainFrameRouteId, 191 kMainFrameRouteId,
192 kSurfaceId, 192 kSurfaceId,
193 kInvalidSessionStorageNamespaceId, 193 kInvalidSessionStorageNamespaceId,
194 base::string16(), 194 base::string16(),
195 false, // is_renderer_created 195 false, // is_renderer_created
196 false, // swapped_out 196 false, // swapped_out
197 false, // hidden 197 false, // hidden
198 false, // never_visible
198 1, // next_page_id 199 1, // next_page_id
199 blink::WebScreenInfo(), 200 blink::WebScreenInfo(),
200 AccessibilityModeOff); 201 AccessibilityModeOff);
201 view->AddRef(); 202 view->AddRef();
202 view_ = view; 203 view_ = view;
203 } 204 }
204 205
205 void RenderViewTest::TearDown() { 206 void RenderViewTest::TearDown() {
206 // Try very hard to collect garbage before shutting down. 207 // Try very hard to collect garbage before shutting down.
207 // "5" was chosen following http://crbug.com/46571#c9 208 // "5" was chosen following http://crbug.com/46571#c9
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 FrameMsg_Navigate navigate_message(impl->main_render_frame()->GetRoutingID(), 420 FrameMsg_Navigate navigate_message(impl->main_render_frame()->GetRoutingID(),
420 navigate_params); 421 navigate_params);
421 impl->main_render_frame()->OnMessageReceived(navigate_message); 422 impl->main_render_frame()->OnMessageReceived(navigate_message);
422 423
423 // The load actually happens asynchronously, so we pump messages to process 424 // The load actually happens asynchronously, so we pump messages to process
424 // the pending continuation. 425 // the pending continuation.
425 ProcessPendingMessages(); 426 ProcessPendingMessages();
426 } 427 }
427 428
428 } // namespace content 429 } // namespace content
OLDNEW
« no previous file with comments | « content/public/browser/web_contents_delegate.cc ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698