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

Side by Side Diff: content/browser/renderer_host/test_render_view_host.cc

Issue 8622004: Reland 110355 - Use shared D3D9 texture to transport the compositor's backing buffer to the brows... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 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 1
2 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 2 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be 3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file. 4 // found in the LICENSE file.
5 5
6 #include "content/browser/browser_url_handler.h" 6 #include "content/browser/browser_url_handler.h"
7 #include "content/browser/renderer_host/test_backing_store.h" 7 #include "content/browser/renderer_host/test_backing_store.h"
8 #include "content/browser/renderer_host/test_render_view_host.h" 8 #include "content/browser/renderer_host/test_render_view_host.h"
9 #include "content/browser/site_instance.h" 9 #include "content/browser/site_instance.h"
10 #include "content/browser/tab_contents/navigation_controller.h" 10 #include "content/browser/tab_contents/navigation_controller.h"
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 } 172 }
173 173
174 BackingStore* TestRenderWidgetHostView::AllocBackingStore( 174 BackingStore* TestRenderWidgetHostView::AllocBackingStore(
175 const gfx::Size& size) { 175 const gfx::Size& size) {
176 return new TestBackingStore(rwh_, size); 176 return new TestBackingStore(rwh_, size);
177 } 177 }
178 178
179 void TestRenderWidgetHostView::OnAcceleratedCompositingStateChange() { 179 void TestRenderWidgetHostView::OnAcceleratedCompositingStateChange() {
180 } 180 }
181 181
182 void TestRenderWidgetHostView::AcceleratedSurfaceBuffersSwapped(
183 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params,
184 int gpu_host_id) {
185 }
186
182 #if defined(OS_MACOSX) 187 #if defined(OS_MACOSX)
183 188
184 gfx::Rect TestRenderWidgetHostView::GetViewCocoaBounds() const { 189 gfx::Rect TestRenderWidgetHostView::GetViewCocoaBounds() const {
185 return gfx::Rect(); 190 return gfx::Rect();
186 } 191 }
187 192
188 void TestRenderWidgetHostView::SetActive(bool active) { 193 void TestRenderWidgetHostView::SetActive(bool active) {
189 // <viettrungluu@gmail.com>: Do I need to do anything here? 194 // <viettrungluu@gmail.com>: Do I need to do anything here?
190 } 195 }
191 196
(...skipping 27 matching lines...) Expand all
219 uint64 surface_id) { 224 uint64 surface_id) {
220 } 225 }
221 226
222 void TestRenderWidgetHostView::AcceleratedSurfaceSetTransportDIB( 227 void TestRenderWidgetHostView::AcceleratedSurfaceSetTransportDIB(
223 gfx::PluginWindowHandle window, 228 gfx::PluginWindowHandle window,
224 int32 width, 229 int32 width,
225 int32 height, 230 int32 height,
226 TransportDIB::Handle transport_dib) { 231 TransportDIB::Handle transport_dib) {
227 } 232 }
228 233
229 void TestRenderWidgetHostView::AcceleratedSurfaceBuffersSwapped(
230 gfx::PluginWindowHandle window,
231 uint64 surface_id,
232 int renderer_id,
233 int32 route_id,
234 int gpu_host_id) {
235 }
236
237 #elif defined(OS_WIN) 234 #elif defined(OS_WIN)
238 void TestRenderWidgetHostView::WillWmDestroy() { 235 void TestRenderWidgetHostView::WillWmDestroy() {
239 } 236 }
240 237
241 #endif 238 #endif
242 239
243 #if defined(OS_POSIX) || defined(USE_AURA) 240 #if defined(OS_POSIX) || defined(USE_AURA)
244 gfx::Rect TestRenderWidgetHostView::GetRootWindowBounds() { 241 gfx::Rect TestRenderWidgetHostView::GetRootWindowBounds() {
245 return gfx::Rect(); 242 return gfx::Rect();
246 } 243 }
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 SetContents(NULL); 358 SetContents(NULL);
362 359
363 // Make sure that we flush any messages related to TabContents destruction 360 // Make sure that we flush any messages related to TabContents destruction
364 // before we destroy the browser context. 361 // before we destroy the browser context.
365 MessageLoop::current()->RunAllPending(); 362 MessageLoop::current()->RunAllPending();
366 363
367 // Release the browser context on the UI thread. 364 // Release the browser context on the UI thread.
368 message_loop_.DeleteSoon(FROM_HERE, browser_context_.release()); 365 message_loop_.DeleteSoon(FROM_HERE, browser_context_.release());
369 message_loop_.RunAllPending(); 366 message_loop_.RunAllPending();
370 } 367 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698