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

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

Issue 10382213: Defer CGLFlushDrawable until OSX-requested drawRect to avoid spinning when window is obscured. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: test compile Created 8 years, 7 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/browser/renderer_host/test_backing_store.h" 5 #include "content/browser/renderer_host/test_backing_store.h"
6 #include "content/browser/renderer_host/test_render_view_host.h" 6 #include "content/browser/renderer_host/test_render_view_host.h"
7 #include "content/browser/site_instance_impl.h" 7 #include "content/browser/site_instance_impl.h"
8 #include "content/browser/web_contents/navigation_controller_impl.h" 8 #include "content/browser/web_contents/navigation_controller_impl.h"
9 #include "content/browser/web_contents/test_web_contents.h" 9 #include "content/browser/web_contents/test_web_contents.h"
10 #include "content/common/view_messages.h" 10 #include "content/common/view_messages.h"
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 void TestRenderWidgetHostView::AcceleratedSurfaceSuspend() { 117 void TestRenderWidgetHostView::AcceleratedSurfaceSuspend() {
118 } 118 }
119 119
120 bool TestRenderWidgetHostView::HasAcceleratedSurface( 120 bool TestRenderWidgetHostView::HasAcceleratedSurface(
121 const gfx::Size& desired_size) { 121 const gfx::Size& desired_size) {
122 return false; 122 return false;
123 } 123 }
124 124
125 #if defined(OS_MACOSX) 125 #if defined(OS_MACOSX)
126 126
127 void TestRenderWidgetHostView::AboutToWaitForBackingStoreMsg() {
128 }
129
127 gfx::Rect TestRenderWidgetHostView::GetViewCocoaBounds() const { 130 gfx::Rect TestRenderWidgetHostView::GetViewCocoaBounds() const {
128 return gfx::Rect(); 131 return gfx::Rect();
129 } 132 }
130 133
131 void TestRenderWidgetHostView::SetActive(bool active) { 134 void TestRenderWidgetHostView::SetActive(bool active) {
132 // <viettrungluu@gmail.com>: Do I need to do anything here? 135 // <viettrungluu@gmail.com>: Do I need to do anything here?
133 } 136 }
134 137
135 void TestRenderWidgetHostView::PluginFocusChanged(bool focused, 138 void TestRenderWidgetHostView::PluginFocusChanged(bool focused,
136 int plugin_id) { 139 int plugin_id) {
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 327
325 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() { 328 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() {
326 return static_cast<TestRenderViewHost*>(active_rvh()); 329 return static_cast<TestRenderViewHost*>(active_rvh());
327 } 330 }
328 331
329 TestWebContents* RenderViewHostImplTestHarness::contents() { 332 TestWebContents* RenderViewHostImplTestHarness::contents() {
330 return static_cast<TestWebContents*>(web_contents()); 333 return static_cast<TestWebContents*>(web_contents());
331 } 334 }
332 335
333 } // namespace content 336 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/test_render_view_host.h ('k') | content/port/browser/render_widget_host_view_port.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698