| 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 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 502 host_->Send(new ViewMsg_ReclaimCompositorResources( | 502 host_->Send(new ViewMsg_ReclaimCompositorResources( |
| 503 host_->GetRoutingID(), last_output_surface_id_, ack)); | 503 host_->GetRoutingID(), last_output_surface_id_, ack)); |
| 504 return; | 504 return; |
| 505 } | 505 } |
| 506 | 506 |
| 507 std::copy(resources.begin(), resources.end(), | 507 std::copy(resources.begin(), resources.end(), |
| 508 std::back_inserter(surface_returned_resources_)); | 508 std::back_inserter(surface_returned_resources_)); |
| 509 } | 509 } |
| 510 | 510 |
| 511 void RenderWidgetHostViewChildFrame::SetBeginFrameSource( | 511 void RenderWidgetHostViewChildFrame::SetBeginFrameSource( |
| 512 cc::SurfaceId surface_id, | |
| 513 cc::BeginFrameSource* begin_frame_source) { | 512 cc::BeginFrameSource* begin_frame_source) { |
| 514 // TODO(tansell): Hook this up. | 513 // TODO(tansell): Hook this up. |
| 515 } | 514 } |
| 516 | 515 |
| 517 BrowserAccessibilityManager* | 516 BrowserAccessibilityManager* |
| 518 RenderWidgetHostViewChildFrame::CreateBrowserAccessibilityManager( | 517 RenderWidgetHostViewChildFrame::CreateBrowserAccessibilityManager( |
| 519 BrowserAccessibilityDelegate* delegate) { | 518 BrowserAccessibilityDelegate* delegate) { |
| 520 return BrowserAccessibilityManager::Create( | 519 return BrowserAccessibilityManager::Create( |
| 521 BrowserAccessibilityManager::GetEmptyDocument(), delegate); | 520 BrowserAccessibilityManager::GetEmptyDocument(), delegate); |
| 522 } | 521 } |
| 523 | 522 |
| 524 void RenderWidgetHostViewChildFrame::ClearCompositorSurfaceIfNecessary() { | 523 void RenderWidgetHostViewChildFrame::ClearCompositorSurfaceIfNecessary() { |
| 525 if (surface_factory_ && !surface_id_.is_null()) | 524 if (surface_factory_ && !surface_id_.is_null()) |
| 526 surface_factory_->Destroy(surface_id_); | 525 surface_factory_->Destroy(surface_id_); |
| 527 surface_id_ = cc::SurfaceId(); | 526 surface_id_ = cc::SurfaceId(); |
| 528 } | 527 } |
| 529 | 528 |
| 530 cc::SurfaceId RenderWidgetHostViewChildFrame::SurfaceIdForTesting() const { | 529 cc::SurfaceId RenderWidgetHostViewChildFrame::SurfaceIdForTesting() const { |
| 531 return surface_id_; | 530 return surface_id_; |
| 532 }; | 531 }; |
| 533 | 532 |
| 534 } // namespace content | 533 } // namespace content |
| OLD | NEW |