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

Unified Diff: cc/layers/render_surface_unittest.cc

Issue 2857343002: Delete LayerImpl::GetRenderSurface. (Closed)
Patch Set: none 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/layers/render_surface_impl_unittest.cc ('k') | cc/test/layer_test_common.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/render_surface_unittest.cc
diff --git a/cc/layers/render_surface_unittest.cc b/cc/layers/render_surface_unittest.cc
index b322ec13ec52c10733f7444591141982420e6665..05412a98f2434e0683591e7993d58b2a37df3553 100644
--- a/cc/layers/render_surface_unittest.cc
+++ b/cc/layers/render_surface_unittest.cc
@@ -10,6 +10,7 @@
#include "cc/test/fake_impl_task_runner_provider.h"
#include "cc/test/fake_layer_tree_host_impl.h"
#include "cc/test/geometry_test_utils.h"
+#include "cc/test/layer_test_common.h"
#include "cc/test/mock_occlusion_tracker.h"
#include "cc/test/test_task_graph_runner.h"
#include "cc/trees/layer_tree_impl.h"
@@ -53,7 +54,7 @@ TEST(RenderSurfaceTest, VerifySurfaceChangesAreTrackedProperly) {
host_impl.active_tree()->UpdateDrawProperties(false /* update_lcd_text */);
RenderSurfaceImpl* render_surface =
- host_impl.active_tree()->root_layer_for_testing()->GetRenderSurface();
+ GetRenderSurface(host_impl.active_tree()->root_layer_for_testing());
ASSERT_TRUE(render_surface);
// Currently, the content_rect, clip_rect, and
@@ -113,9 +114,9 @@ TEST(RenderSurfaceTest, SanityCheckSurfaceCreatesCorrectSharedQuadState) {
host_impl.active_tree()->UpdateDrawProperties(false /* update_lcd_text */);
ASSERT_TRUE(
- host_impl.active_tree()->LayerById(owning_layer_id)->GetRenderSurface());
+ GetRenderSurface(host_impl.active_tree()->LayerById(owning_layer_id)));
RenderSurfaceImpl* render_surface =
- host_impl.active_tree()->LayerById(owning_layer_id)->GetRenderSurface();
+ GetRenderSurface(host_impl.active_tree()->LayerById(owning_layer_id));
gfx::Rect content_rect(0, 0, 50, 50);
gfx::Rect clip_rect(5, 5, 40, 40);
@@ -171,9 +172,9 @@ TEST(RenderSurfaceTest, SanityCheckSurfaceCreatesCorrectRenderPass) {
host_impl.active_tree()->UpdateDrawProperties(false /* update_lcd_text */);
ASSERT_TRUE(
- host_impl.active_tree()->LayerById(owning_layer_id)->GetRenderSurface());
+ GetRenderSurface(host_impl.active_tree()->LayerById(owning_layer_id)));
RenderSurfaceImpl* render_surface =
- host_impl.active_tree()->LayerById(owning_layer_id)->GetRenderSurface();
+ GetRenderSurface(host_impl.active_tree()->LayerById(owning_layer_id));
gfx::Rect content_rect(0, 0, 50, 50);
gfx::Transform origin;
« no previous file with comments | « cc/layers/render_surface_impl_unittest.cc ('k') | cc/test/layer_test_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698