Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Side by Side Diff: content/browser/frame_host/render_widget_host_view_child_frame.cc

Issue 2872883002: Rename EvictFrame, EvictSurface to EvictCurrentSurface (Closed)
Patch Set: Rebase Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « components/viz/frame_sinks/gpu_root_compositor_frame_sink.cc ('k') | content/browser/renderer_host/delegated_frame_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698