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

Unified Diff: cc/layers/surface_layer_impl_unittest.cc

Issue 2661543002: Rename LocalFrameId to LocalSurfaceId (Closed)
Patch Set: c Created 3 years, 11 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
« no previous file with comments | « cc/ipc/typemaps.gni ('k') | cc/layers/surface_layer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/surface_layer_impl_unittest.cc
diff --git a/cc/layers/surface_layer_impl_unittest.cc b/cc/layers/surface_layer_impl_unittest.cc
index 051de521cacb633733430185960f5b89fb9f6413..1747e1be63c2eef846c56670b7968424c54732f5 100644
--- a/cc/layers/surface_layer_impl_unittest.cc
+++ b/cc/layers/surface_layer_impl_unittest.cc
@@ -18,8 +18,8 @@ static constexpr FrameSinkId kArbitraryFrameSinkId(1, 1);
TEST(SurfaceLayerImplTest, Occlusion) {
gfx::Size layer_size(1000, 1000);
gfx::Size viewport_size(1000, 1000);
- const LocalFrameId kArbitraryLocalFrameId(9,
- base::UnguessableToken::Create());
+ const LocalSurfaceId kArbitraryLocalSurfaceId(
+ 9, base::UnguessableToken::Create());
LayerTestCommon::LayerImplTest impl;
@@ -27,7 +27,7 @@ TEST(SurfaceLayerImplTest, Occlusion) {
impl.AddChildToRoot<SurfaceLayerImpl>();
surface_layer_impl->SetBounds(layer_size);
surface_layer_impl->SetDrawsContent(true);
- SurfaceId surface_id(kArbitraryFrameSinkId, kArbitraryLocalFrameId);
+ SurfaceId surface_id(kArbitraryFrameSinkId, kArbitraryLocalSurfaceId);
surface_layer_impl->SetSurfaceInfo(SurfaceInfo(surface_id, 1.f, layer_size));
impl.CalcDrawProps(viewport_size);
@@ -69,8 +69,8 @@ TEST(SurfaceLayerImplTest, SurfaceStretchedToLayerBounds) {
LayerTestCommon::LayerImplTest impl;
SurfaceLayerImpl* surface_layer_impl =
impl.AddChildToRoot<SurfaceLayerImpl>();
- const LocalFrameId kArbitraryLocalFrameId(9,
- base::UnguessableToken::Create());
+ const LocalSurfaceId kArbitraryLocalSurfaceId(
+ 9, base::UnguessableToken::Create());
// Given condition: layer and surface have different size and different
// aspect ratios.
@@ -85,7 +85,7 @@ TEST(SurfaceLayerImplTest, SurfaceStretchedToLayerBounds) {
// active tree.
surface_layer_impl->SetBounds(layer_size);
surface_layer_impl->SetDrawsContent(true);
- SurfaceId surface_id(kArbitraryFrameSinkId, kArbitraryLocalFrameId);
+ SurfaceId surface_id(kArbitraryFrameSinkId, kArbitraryLocalSurfaceId);
surface_layer_impl->SetSurfaceInfo(
SurfaceInfo(surface_id, surface_scale, surface_size));
surface_layer_impl->SetStretchContentToFillBounds(true);
« no previous file with comments | « cc/ipc/typemaps.gni ('k') | cc/layers/surface_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698