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

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

Issue 4142004: Let every "accelerated IO surface swapped" message have an identifier of the surface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments Created 10 years, 1 month 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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 } 171 }
172 172
173 void TestRenderWidgetHostView::AcceleratedSurfaceSetTransportDIB( 173 void TestRenderWidgetHostView::AcceleratedSurfaceSetTransportDIB(
174 gfx::PluginWindowHandle window, 174 gfx::PluginWindowHandle window,
175 int32 width, 175 int32 width,
176 int32 height, 176 int32 height,
177 TransportDIB::Handle transport_dib) { 177 TransportDIB::Handle transport_dib) {
178 } 178 }
179 179
180 void TestRenderWidgetHostView::AcceleratedSurfaceBuffersSwapped( 180 void TestRenderWidgetHostView::AcceleratedSurfaceBuffersSwapped(
181 gfx::PluginWindowHandle window) { 181 gfx::PluginWindowHandle window, uint64 surface_id) {
182 } 182 }
183 183
184 void TestRenderWidgetHostView::GpuRenderingStateDidChange() { 184 void TestRenderWidgetHostView::GpuRenderingStateDidChange() {
185 } 185 }
186 #endif 186 #endif
187 187
188 TestRenderViewHostFactory::TestRenderViewHostFactory( 188 TestRenderViewHostFactory::TestRenderViewHostFactory(
189 RenderProcessHostFactory* rph_factory) 189 RenderProcessHostFactory* rph_factory)
190 : render_process_host_factory_(rph_factory) { 190 : render_process_host_factory_(rph_factory) {
191 RenderViewHostFactory::RegisterFactory(this); 191 RenderViewHostFactory::RegisterFactory(this);
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 contents_.reset(); 284 contents_.reset();
285 285
286 // Make sure that we flush any messages related to TabContents destruction 286 // Make sure that we flush any messages related to TabContents destruction
287 // before we destroy the profile. 287 // before we destroy the profile.
288 MessageLoop::current()->RunAllPending(); 288 MessageLoop::current()->RunAllPending();
289 289
290 // Release the profile on the UI thread. 290 // Release the profile on the UI thread.
291 message_loop_.DeleteSoon(FROM_HERE, profile_.release()); 291 message_loop_.DeleteSoon(FROM_HERE, profile_.release());
292 message_loop_.RunAllPending(); 292 message_loop_.RunAllPending();
293 } 293 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698