OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |