Chromium Code Reviews

Side by Side Diff: chrome/browser/renderer_host/test/test_render_view_host.cc

Issue 5528007: If compositor window already exists, then simply return it rather than compla... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/browser/renderer_host/test/test_render_view_host.h" 5 #include "chrome/browser/renderer_host/test/test_render_view_host.h"
6 6
7 #include "chrome/browser/browser_url_handler.h" 7 #include "chrome/browser/browser_url_handler.h"
8 #include "chrome/browser/renderer_host/site_instance.h" 8 #include "chrome/browser/renderer_host/site_instance.h"
9 #include "chrome/browser/renderer_host/test/test_backing_store.h" 9 #include "chrome/browser/renderer_host/test/test_backing_store.h"
10 #include "chrome/browser/tab_contents/navigation_controller.h" 10 #include "chrome/browser/tab_contents/navigation_controller.h"
(...skipping 170 matching lines...)
181 gfx::PluginWindowHandle window, 181 gfx::PluginWindowHandle window,
182 uint64 surface_id, 182 uint64 surface_id,
183 int renderer_id, 183 int renderer_id,
184 int32 route_id, 184 int32 route_id,
185 uint64 swap_buffers_count) { 185 uint64 swap_buffers_count) {
186 } 186 }
187 187
188 void TestRenderWidgetHostView::GpuRenderingStateDidChange() { 188 void TestRenderWidgetHostView::GpuRenderingStateDidChange() {
189 } 189 }
190 #elif defined(OS_WIN) 190 #elif defined(OS_WIN)
191 gfx::PluginWindowHandle TestRenderWidgetHostView::CreateCompositorHostWindow() { 191 gfx::PluginWindowHandle TestRenderWidgetHostView::GetCompositorHostWindow() {
192 return gfx::kNullPluginWindow; 192 return gfx::kNullPluginWindow;
193 } 193 }
194 194
195 void TestRenderWidgetHostView::WillWmDestroy() { 195 void TestRenderWidgetHostView::WillWmDestroy() {
196 } 196 }
197 197
198 void TestRenderWidgetHostView::ShowCompositorHostWindow(bool show) { 198 void TestRenderWidgetHostView::ShowCompositorHostWindow(bool show) {
199 } 199 }
200 #endif 200 #endif
201 201
(...skipping 96 matching lines...)
298 contents_.reset(); 298 contents_.reset();
299 299
300 // Make sure that we flush any messages related to TabContents destruction 300 // Make sure that we flush any messages related to TabContents destruction
301 // before we destroy the profile. 301 // before we destroy the profile.
302 MessageLoop::current()->RunAllPending(); 302 MessageLoop::current()->RunAllPending();
303 303
304 // Release the profile on the UI thread. 304 // Release the profile on the UI thread.
305 message_loop_.DeleteSoon(FROM_HERE, profile_.release()); 305 message_loop_.DeleteSoon(FROM_HERE, profile_.release());
306 message_loop_.RunAllPending(); 306 message_loop_.RunAllPending();
307 } 307 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/test/test_render_view_host.h ('k') | chrome/common/gpu_messages_internal.h » ('j') | no next file with comments »

Powered by Google App Engine