| OLD | NEW |
| 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 "base/bind_helpers.h" | 5 #include "base/bind_helpers.h" |
| 6 #include "base/logging.h" | 6 #include "base/logging.h" |
| 7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
| 8 #include "content/browser/browser_plugin/browser_plugin_guest.h" | 8 #include "content/browser/browser_plugin/browser_plugin_guest.h" |
| 9 #include "content/browser/renderer_host/render_view_host_impl.h" | 9 #include "content/browser/renderer_host/render_view_host_impl.h" |
| 10 #include "content/browser/renderer_host/render_widget_host_view_guest.h" | 10 #include "content/browser/renderer_host/render_widget_host_view_guest.h" |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 return NULL; | 226 return NULL; |
| 227 } | 227 } |
| 228 | 228 |
| 229 void RenderWidgetHostViewGuest::CopyFromCompositingSurface( | 229 void RenderWidgetHostViewGuest::CopyFromCompositingSurface( |
| 230 const gfx::Rect& src_subrect, | 230 const gfx::Rect& src_subrect, |
| 231 const gfx::Size& /* dst_size */, | 231 const gfx::Size& /* dst_size */, |
| 232 const base::Callback<void(bool, const SkBitmap&)>& callback) { | 232 const base::Callback<void(bool, const SkBitmap&)>& callback) { |
| 233 callback.Run(false, SkBitmap()); | 233 callback.Run(false, SkBitmap()); |
| 234 } | 234 } |
| 235 | 235 |
| 236 void RenderWidgetHostViewGuest::CopyFromCompositingSurfaceToVideoFrame( |
| 237 const gfx::Rect& src_subrect, |
| 238 const scoped_refptr<media::VideoFrame>& target, |
| 239 const base::Callback<void(bool)>& callback) { |
| 240 NOTIMPLEMENTED(); |
| 241 callback.Run(false); |
| 242 } |
| 243 |
| 244 bool RenderWidgetHostViewGuest::CanCopyToVideoFrame() const { |
| 245 return false; |
| 246 } |
| 247 |
| 236 void RenderWidgetHostViewGuest::AcceleratedSurfaceSuspend() { | 248 void RenderWidgetHostViewGuest::AcceleratedSurfaceSuspend() { |
| 237 NOTREACHED(); | 249 NOTREACHED(); |
| 238 } | 250 } |
| 239 | 251 |
| 240 bool RenderWidgetHostViewGuest::HasAcceleratedSurface( | 252 bool RenderWidgetHostViewGuest::HasAcceleratedSurface( |
| 241 const gfx::Size& desired_size) { | 253 const gfx::Size& desired_size) { |
| 242 DCHECK(enable_compositing_); | 254 DCHECK(enable_compositing_); |
| 243 if (enable_compositing_) | 255 if (enable_compositing_) |
| 244 return false; | 256 return false; |
| 245 else | 257 else |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 407 #if defined(OS_WIN) && !defined(USE_AURA) | 419 #if defined(OS_WIN) && !defined(USE_AURA) |
| 408 void RenderWidgetHostViewGuest::WillWmDestroy() { | 420 void RenderWidgetHostViewGuest::WillWmDestroy() { |
| 409 } | 421 } |
| 410 #endif | 422 #endif |
| 411 | 423 |
| 412 void RenderWidgetHostViewGuest::GetScreenInfo(WebKit::WebScreenInfo* results) { | 424 void RenderWidgetHostViewGuest::GetScreenInfo(WebKit::WebScreenInfo* results) { |
| 413 platform_view_->GetScreenInfo(results); | 425 platform_view_->GetScreenInfo(results); |
| 414 } | 426 } |
| 415 | 427 |
| 416 } // namespace content | 428 } // namespace content |
| OLD | NEW |