| 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 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 host_->Send(new ViewMsg_ReclaimCompositorResources( | 524 host_->Send(new ViewMsg_ReclaimCompositorResources( |
| 525 host_->GetRoutingID(), last_output_surface_id_, ack)); | 525 host_->GetRoutingID(), last_output_surface_id_, ack)); |
| 526 return; | 526 return; |
| 527 } | 527 } |
| 528 | 528 |
| 529 std::copy(resources.begin(), resources.end(), | 529 std::copy(resources.begin(), resources.end(), |
| 530 std::back_inserter(surface_returned_resources_)); | 530 std::back_inserter(surface_returned_resources_)); |
| 531 } | 531 } |
| 532 | 532 |
| 533 void RenderWidgetHostViewChildFrame::SetBeginFrameSource( | 533 void RenderWidgetHostViewChildFrame::SetBeginFrameSource( |
| 534 cc::SurfaceId surface_id, | |
| 535 cc::BeginFrameSource* begin_frame_source) { | 534 cc::BeginFrameSource* begin_frame_source) { |
| 536 // TODO(tansell): Hook this up. | 535 // TODO(tansell): Hook this up. |
| 537 } | 536 } |
| 538 | 537 |
| 539 BrowserAccessibilityManager* | 538 BrowserAccessibilityManager* |
| 540 RenderWidgetHostViewChildFrame::CreateBrowserAccessibilityManager( | 539 RenderWidgetHostViewChildFrame::CreateBrowserAccessibilityManager( |
| 541 BrowserAccessibilityDelegate* delegate) { | 540 BrowserAccessibilityDelegate* delegate) { |
| 542 return BrowserAccessibilityManager::Create( | 541 return BrowserAccessibilityManager::Create( |
| 543 BrowserAccessibilityManager::GetEmptyDocument(), delegate); | 542 BrowserAccessibilityManager::GetEmptyDocument(), delegate); |
| 544 } | 543 } |
| 545 | 544 |
| 546 void RenderWidgetHostViewChildFrame::ClearCompositorSurfaceIfNecessary() { | 545 void RenderWidgetHostViewChildFrame::ClearCompositorSurfaceIfNecessary() { |
| 547 if (surface_factory_ && !surface_id_.is_null()) | 546 if (surface_factory_ && !surface_id_.is_null()) |
| 548 surface_factory_->Destroy(surface_id_); | 547 surface_factory_->Destroy(surface_id_); |
| 549 surface_id_ = cc::SurfaceId(); | 548 surface_id_ = cc::SurfaceId(); |
| 550 } | 549 } |
| 551 | 550 |
| 552 } // namespace content | 551 } // namespace content |
| OLD | NEW |