| 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 <algorithm> | 7 #include <algorithm> |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 672 BrowserAccessibilityManager* | 672 BrowserAccessibilityManager* |
| 673 RenderWidgetHostViewChildFrame::CreateBrowserAccessibilityManager( | 673 RenderWidgetHostViewChildFrame::CreateBrowserAccessibilityManager( |
| 674 BrowserAccessibilityDelegate* delegate, bool for_root_frame) { | 674 BrowserAccessibilityDelegate* delegate, bool for_root_frame) { |
| 675 return BrowserAccessibilityManager::Create( | 675 return BrowserAccessibilityManager::Create( |
| 676 BrowserAccessibilityManager::GetEmptyDocument(), delegate); | 676 BrowserAccessibilityManager::GetEmptyDocument(), delegate); |
| 677 } | 677 } |
| 678 | 678 |
| 679 void RenderWidgetHostViewChildFrame::ClearCompositorSurfaceIfNecessary() { | 679 void RenderWidgetHostViewChildFrame::ClearCompositorSurfaceIfNecessary() { |
| 680 if (!support_) | 680 if (!support_) |
| 681 return; | 681 return; |
| 682 support_->EvictFrame(); | 682 support_->EvictCurrentSurface(); |
| 683 has_frame_ = false; | 683 has_frame_ = false; |
| 684 } | 684 } |
| 685 | 685 |
| 686 bool RenderWidgetHostViewChildFrame::IsChildFrameForTesting() const { | 686 bool RenderWidgetHostViewChildFrame::IsChildFrameForTesting() const { |
| 687 return true; | 687 return true; |
| 688 } | 688 } |
| 689 | 689 |
| 690 cc::SurfaceId RenderWidgetHostViewChildFrame::SurfaceIdForTesting() const { | 690 cc::SurfaceId RenderWidgetHostViewChildFrame::SurfaceIdForTesting() const { |
| 691 return cc::SurfaceId(frame_sink_id_, local_surface_id_); | 691 return cc::SurfaceId(frame_sink_id_, local_surface_id_); |
| 692 }; | 692 }; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 715 frame_sink_id_); | 715 frame_sink_id_); |
| 716 } | 716 } |
| 717 support_.reset(); | 717 support_.reset(); |
| 718 } | 718 } |
| 719 | 719 |
| 720 bool RenderWidgetHostViewChildFrame::HasEmbedderChanged() { | 720 bool RenderWidgetHostViewChildFrame::HasEmbedderChanged() { |
| 721 return false; | 721 return false; |
| 722 } | 722 } |
| 723 | 723 |
| 724 } // namespace content | 724 } // namespace content |
| OLD | NEW |