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

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

Issue 6462034: Refactor how surfaces are acquired for GPU compositing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix view views build. Created 9 years, 10 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) 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 gfx::PluginWindowHandle window, 184 gfx::PluginWindowHandle window,
185 uint64 surface_id, 185 uint64 surface_id,
186 int renderer_id, 186 int renderer_id,
187 int32 route_id, 187 int32 route_id,
188 uint64 swap_buffers_count) { 188 uint64 swap_buffers_count) {
189 } 189 }
190 190
191 void TestRenderWidgetHostView::GpuRenderingStateDidChange() { 191 void TestRenderWidgetHostView::GpuRenderingStateDidChange() {
192 } 192 }
193 #elif defined(OS_WIN) 193 #elif defined(OS_WIN)
194 gfx::PluginWindowHandle TestRenderWidgetHostView::GetCompositorHostWindow() {
195 return gfx::kNullPluginWindow;
196 }
197
198 void TestRenderWidgetHostView::WillWmDestroy() { 194 void TestRenderWidgetHostView::WillWmDestroy() {
199 } 195 }
200 196
201 void TestRenderWidgetHostView::ShowCompositorHostWindow(bool show) { 197 void TestRenderWidgetHostView::ShowCompositorHostWindow(bool show) {
202 } 198 }
203 #endif 199 #endif
204 200
205 TestRenderViewHostFactory::TestRenderViewHostFactory( 201 TestRenderViewHostFactory::TestRenderViewHostFactory(
206 RenderProcessHostFactory* rph_factory) 202 RenderProcessHostFactory* rph_factory)
207 : render_process_host_factory_(rph_factory) { 203 : render_process_host_factory_(rph_factory) {
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 contents_.reset(); 297 contents_.reset();
302 298
303 // Make sure that we flush any messages related to TabContents destruction 299 // Make sure that we flush any messages related to TabContents destruction
304 // before we destroy the profile. 300 // before we destroy the profile.
305 MessageLoop::current()->RunAllPending(); 301 MessageLoop::current()->RunAllPending();
306 302
307 // Release the profile on the UI thread. 303 // Release the profile on the UI thread.
308 message_loop_.DeleteSoon(FROM_HERE, profile_.release()); 304 message_loop_.DeleteSoon(FROM_HERE, profile_.release());
309 message_loop_.RunAllPending(); 305 message_loop_.RunAllPending();
310 } 306 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698