OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/frame_host/render_widget_host_view_child_frame.h" | 5 #include "content/browser/frame_host/render_widget_host_view_child_frame.h" |
6 | 6 |
7 #include "cc/surfaces/surface.h" | 7 #include "cc/surfaces/surface.h" |
8 #include "cc/surfaces/surface_factory.h" | 8 #include "cc/surfaces/surface_factory.h" |
9 #include "cc/surfaces/surface_manager.h" | 9 #include "cc/surfaces/surface_manager.h" |
10 #include "cc/surfaces/surface_sequence.h" | 10 #include "cc/surfaces/surface_sequence.h" |
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 | 423 |
424 bool RenderWidgetHostViewChildFrame::CanCopyToVideoFrame() const { | 424 bool RenderWidgetHostViewChildFrame::CanCopyToVideoFrame() const { |
425 return false; | 425 return false; |
426 } | 426 } |
427 | 427 |
428 bool RenderWidgetHostViewChildFrame::HasAcceleratedSurface( | 428 bool RenderWidgetHostViewChildFrame::HasAcceleratedSurface( |
429 const gfx::Size& desired_size) { | 429 const gfx::Size& desired_size) { |
430 return false; | 430 return false; |
431 } | 431 } |
432 | 432 |
433 gfx::GLSurfaceHandle RenderWidgetHostViewChildFrame::GetCompositingSurface() { | |
434 return gfx::GLSurfaceHandle(gfx::kNullPluginWindow, gfx::NULL_TRANSPORT); | |
435 } | |
436 | |
437 #if defined(OS_WIN) | 433 #if defined(OS_WIN) |
438 void RenderWidgetHostViewChildFrame::SetParentNativeViewAccessible( | 434 void RenderWidgetHostViewChildFrame::SetParentNativeViewAccessible( |
439 gfx::NativeViewAccessible accessible_parent) { | 435 gfx::NativeViewAccessible accessible_parent) { |
440 } | 436 } |
441 | 437 |
442 gfx::NativeViewId RenderWidgetHostViewChildFrame::GetParentForWindowlessPlugin() | 438 gfx::NativeViewId RenderWidgetHostViewChildFrame::GetParentForWindowlessPlugin() |
443 const { | 439 const { |
444 return NULL; | 440 return NULL; |
445 } | 441 } |
446 #endif // defined(OS_WIN) | 442 #endif // defined(OS_WIN) |
(...skipping 24 matching lines...) Expand all Loading... |
471 BrowserAccessibilityManager::GetEmptyDocument(), delegate); | 467 BrowserAccessibilityManager::GetEmptyDocument(), delegate); |
472 } | 468 } |
473 | 469 |
474 void RenderWidgetHostViewChildFrame::ClearCompositorSurfaceIfNecessary() { | 470 void RenderWidgetHostViewChildFrame::ClearCompositorSurfaceIfNecessary() { |
475 if (surface_factory_ && !surface_id_.is_null()) | 471 if (surface_factory_ && !surface_id_.is_null()) |
476 surface_factory_->Destroy(surface_id_); | 472 surface_factory_->Destroy(surface_id_); |
477 surface_id_ = cc::SurfaceId(); | 473 surface_id_ = cc::SurfaceId(); |
478 } | 474 } |
479 | 475 |
480 } // namespace content | 476 } // namespace content |
OLD | NEW |