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