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

Side by Side Diff: cc/occlusion_tracker_unittest.cc

Issue 11465007: Move LayerSorter to exist locally only in layer_tree_host_common (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years 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 | Annotate | Revision Log
« no previous file with comments | « cc/layer_tree_host_unittest.cc ('k') | cc/picture_layer_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 "cc/occlusion_tracker.h" 5 #include "cc/occlusion_tracker.h"
6 6
7 #include <public/WebFilterOperation.h> 7 #include <public/WebFilterOperation.h>
8 #include <public/WebFilterOperations.h> 8 #include <public/WebFilterOperations.h>
9 9
10 #include "cc/layer.h" 10 #include "cc/layer.h"
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 WebFilterOperations filters; 271 WebFilterOperations filters;
272 filters.append(WebFilterOperation::createGrayscaleFilter(0.5)); 272 filters.append(WebFilterOperation::createGrayscaleFilter(0.5));
273 layer->setFilters(filters); 273 layer->setFilters(filters);
274 return layer; 274 return layer;
275 } 275 }
276 276
277 void calcDrawEtc(TestContentLayerImpl* root) 277 void calcDrawEtc(TestContentLayerImpl* root)
278 { 278 {
279 DCHECK(root == m_root.get()); 279 DCHECK(root == m_root.get());
280 int dummyMaxTextureSize = 512; 280 int dummyMaxTextureSize = 512;
281 LayerSorter layerSorter;
282 281
283 DCHECK(!root->renderSurface()); 282 DCHECK(!root->renderSurface());
284 283
285 LayerTreeHostCommon::calculateDrawProperties(root, root->bounds(), 1, 1, &layerSorter, dummyMaxTextureSize, m_renderSurfaceLayerListImpl); 284 LayerTreeHostCommon::calculateDrawProperties(root, root->bounds(), 1, 1, dummyMaxTextureSize, m_renderSurfaceLayerListImpl);
286 285
287 m_layerIterator = m_layerIteratorBegin = Types::TestLayerIterator::begin (&m_renderSurfaceLayerListImpl); 286 m_layerIterator = m_layerIteratorBegin = Types::TestLayerIterator::begin (&m_renderSurfaceLayerListImpl);
288 } 287 }
289 288
290 void calcDrawEtc(TestContentLayer* root) 289 void calcDrawEtc(TestContentLayer* root)
291 { 290 {
292 DCHECK(root == m_root.get()); 291 DCHECK(root == m_root.get());
293 int dummyMaxTextureSize = 512; 292 int dummyMaxTextureSize = 512;
294 293
295 DCHECK(!root->renderSurface()); 294 DCHECK(!root->renderSurface());
(...skipping 2777 matching lines...) Expand 10 before | Expand all | Expand 10 after
3073 3072
3074 EXPECT_EQ(gfx::Rect(gfx::Point(), trackingSize).ToString(), occlusion.oc clusionInScreenSpace().ToString()); 3073 EXPECT_EQ(gfx::Rect(gfx::Point(), trackingSize).ToString(), occlusion.oc clusionInScreenSpace().ToString());
3075 EXPECT_EQ(gfx::Rect(gfx::Point(), trackingSize).ToString(), occlusion.oc clusionInTargetSurface().ToString()); 3074 EXPECT_EQ(gfx::Rect(gfx::Point(), trackingSize).ToString(), occlusion.oc clusionInTargetSurface().ToString());
3076 } 3075 }
3077 }; 3076 };
3078 3077
3079 ALL_OCCLUSIONTRACKER_TEST(OcclusionTrackerTestMinimumTrackingSize); 3078 ALL_OCCLUSIONTRACKER_TEST(OcclusionTrackerTestMinimumTrackingSize);
3080 3079
3081 } // namespace 3080 } // namespace
3082 } // namespace cc 3081 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layer_tree_host_unittest.cc ('k') | cc/picture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698