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

Unified Diff: cc/trees/occlusion_tracker_unittest.cc

Issue 332873005: Rendering context information added to SharedQuadState (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: layer_tree_json_parser fix Created 6 years, 6 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/trees/occlusion_tracker.cc ('k') | content/common/cc_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/occlusion_tracker_unittest.cc
diff --git a/cc/trees/occlusion_tracker_unittest.cc b/cc/trees/occlusion_tracker_unittest.cc
index 89165b8d6f0b2f4ed5856407981885e1ab8bdbc8..1a6529bc557f1dfeaf8c330bd89e6eb8747d6311 100644
--- a/cc/trees/occlusion_tracker_unittest.cc
+++ b/cc/trees/occlusion_tracker_unittest.cc
@@ -1903,9 +1903,9 @@ class OcclusionTrackerTestUnsorted3dLayers
gfx::Size(100, 100),
true);
parent->SetShouldFlattenTransform(false);
- parent->SetIs3dSorted(true);
- child1->SetIs3dSorted(true);
- child2->SetIs3dSorted(true);
+ parent->Set3dSortingContextId(1);
+ child1->Set3dSortingContextId(1);
+ child2->Set3dSortingContextId(1);
this->CalcDrawEtc(parent);
@@ -1949,8 +1949,8 @@ class OcclusionTrackerTestPerspectiveTransform
gfx::Size(200, 200),
true);
container->SetShouldFlattenTransform(false);
- container->SetIs3dSorted(true);
- layer->SetIs3dSorted(true);
+ container->Set3dSortingContextId(1);
+ layer->Set3dSortingContextId(1);
layer->SetShouldFlattenTransform(false);
this->CalcDrawEtc(parent);
@@ -1994,9 +1994,9 @@ class OcclusionTrackerTestPerspectiveTransformBehindCamera
typename Types::ContentLayerType* layer = this->CreateDrawingLayer(
container, transform, gfx::PointF(), gfx::Size(500, 500), true);
container->SetShouldFlattenTransform(false);
- container->SetIs3dSorted(true);
+ container->Set3dSortingContextId(1);
layer->SetShouldFlattenTransform(false);
- layer->SetIs3dSorted(true);
+ layer->Set3dSortingContextId(1);
this->CalcDrawEtc(parent);
TestOcclusionTrackerWithClip<typename Types::LayerType> occlusion(
@@ -2037,9 +2037,9 @@ class OcclusionTrackerTestLayerBehindCameraDoesNotOcclude
typename Types::ContentLayerType* layer = this->CreateDrawingLayer(
parent, transform, gfx::PointF(), gfx::Size(100, 100), true);
parent->SetShouldFlattenTransform(false);
- parent->SetIs3dSorted(true);
+ parent->Set3dSortingContextId(1);
layer->SetShouldFlattenTransform(false);
- layer->SetIs3dSorted(true);
+ layer->Set3dSortingContextId(1);
this->CalcDrawEtc(parent);
TestOcclusionTrackerWithClip<typename Types::LayerType> occlusion(
@@ -2078,9 +2078,9 @@ class OcclusionTrackerTestLargePixelsOccludeInsideClipRect
typename Types::ContentLayerType* layer = this->CreateDrawingLayer(
parent, transform, gfx::PointF(), gfx::Size(100, 100), true);
parent->SetShouldFlattenTransform(false);
- parent->SetIs3dSorted(true);
+ parent->Set3dSortingContextId(1);
layer->SetShouldFlattenTransform(false);
- layer->SetIs3dSorted(true);
+ layer->Set3dSortingContextId(1);
this->CalcDrawEtc(parent);
TestOcclusionTrackerWithClip<typename Types::LayerType> occlusion(
« no previous file with comments | « cc/trees/occlusion_tracker.cc ('k') | content/common/cc_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698