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

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

Issue 4815001: Use inner HWND for accelerated rendering on windows (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. 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 void TestRenderWidgetHostView::AcceleratedSurfaceBuffersSwapped( 174 void TestRenderWidgetHostView::AcceleratedSurfaceBuffersSwapped(
175 gfx::PluginWindowHandle window, 175 gfx::PluginWindowHandle window,
176 uint64 surface_id, 176 uint64 surface_id,
177 int renderer_id, 177 int renderer_id,
178 int32 route_id, 178 int32 route_id,
179 uint64 swap_buffers_count) { 179 uint64 swap_buffers_count) {
180 } 180 }
181 181
182 void TestRenderWidgetHostView::GpuRenderingStateDidChange() { 182 void TestRenderWidgetHostView::GpuRenderingStateDidChange() {
183 } 183 }
184 #elif defined(OS_WIN)
185 gfx::PluginWindowHandle TestRenderWidgetHostView::CreateCompositorHostWindow(
186 ) {
187 return gfx::kNullPluginWindow;
188 }
189
190 void TestRenderWidgetHostView::WillWmDestroy() {
191 }
192
193 void TestRenderWidgetHostView::ShowCompositorHostWindow(bool show) {
194 }
184 #endif 195 #endif
185 196
186 TestRenderViewHostFactory::TestRenderViewHostFactory( 197 TestRenderViewHostFactory::TestRenderViewHostFactory(
187 RenderProcessHostFactory* rph_factory) 198 RenderProcessHostFactory* rph_factory)
188 : render_process_host_factory_(rph_factory) { 199 : render_process_host_factory_(rph_factory) {
189 RenderViewHostFactory::RegisterFactory(this); 200 RenderViewHostFactory::RegisterFactory(this);
190 } 201 }
191 202
192 TestRenderViewHostFactory::~TestRenderViewHostFactory() { 203 TestRenderViewHostFactory::~TestRenderViewHostFactory() {
193 RenderViewHostFactory::UnregisterFactory(); 204 RenderViewHostFactory::UnregisterFactory();
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 contents_.reset(); 293 contents_.reset();
283 294
284 // Make sure that we flush any messages related to TabContents destruction 295 // Make sure that we flush any messages related to TabContents destruction
285 // before we destroy the profile. 296 // before we destroy the profile.
286 MessageLoop::current()->RunAllPending(); 297 MessageLoop::current()->RunAllPending();
287 298
288 // Release the profile on the UI thread. 299 // Release the profile on the UI thread.
289 message_loop_.DeleteSoon(FROM_HERE, profile_.release()); 300 message_loop_.DeleteSoon(FROM_HERE, profile_.release());
290 message_loop_.RunAllPending(); 301 message_loop_.RunAllPending();
291 } 302 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/test/test_render_view_host.h ('k') | chrome/browser/tab_contents/tab_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698