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

Unified Diff: content/browser/renderer_host/render_widget_host_view_aura_unittest.cc

Issue 2388753003: Introduce cc::LocalFrameId and use in SurfaceFactory (Closed)
Patch Set: Fix exo_unittests Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/render_widget_host_view_aura_unittest.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_aura_unittest.cc b/content/browser/renderer_host/render_widget_host_view_aura_unittest.cc
index 783b3d9ee446004bcb4dd80ebcbf858a73f632c1..80386b0e994a3b72b093726c6a4b538a1a3dc6fd 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura_unittest.cc
+++ b/content/browser/renderer_host/render_widget_host_view_aura_unittest.cc
@@ -366,10 +366,12 @@ class FakeRenderWidgetHostViewAura : public RenderWidgetHostViewAura {
return GetDelegatedFrameHost()->SurfaceIdForTesting();
}
- bool HasFrameData() const {
- return !surface_id().is_null();
+ const cc::LocalFrameId& GetLocalFrameId() const {
+ return GetDelegatedFrameHost()->LocalFrameIdForTesting();
}
+ bool HasFrameData() const { return !GetLocalFrameId().is_null(); }
+
bool released_front_lock_active() const {
return GetDelegatedFrameHost()->ReleasedFrontLockActiveForTesting();
}
@@ -2625,7 +2627,8 @@ class RenderWidgetHostViewAuraCopyRequestTest
cc::SurfaceId surface_id =
view_->GetDelegatedFrameHost()->SurfaceIdForTesting();
if (!surface_id.is_null())
- view_->GetDelegatedFrameHost()->WillDrawSurface(surface_id, view_rect_);
+ view_->GetDelegatedFrameHost()->WillDrawSurface(
+ surface_id.local_frame_id(), view_rect_);
ASSERT_TRUE(view_->last_copy_request_);
}

Powered by Google App Engine
This is Rietveld 408576698