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

Side by Side Diff: cc/damage_tracker_unittest.cc

Issue 11474050: cc: Unify namespaces for all test files (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/cc_tests.gyp ('k') | cc/delay_based_time_source_unittest.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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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/damage_tracker.h" 5 #include "cc/damage_tracker.h"
6 6
7 #include "cc/layer_impl.h" 7 #include "cc/layer_impl.h"
8 #include "cc/layer_tree_host_common.h" 8 #include "cc/layer_tree_host_common.h"
9 #include "cc/math_util.h" 9 #include "cc/math_util.h"
10 #include "cc/single_thread_proxy.h" 10 #include "cc/single_thread_proxy.h"
11 #include "cc/test/fake_impl_proxy.h" 11 #include "cc/test/fake_impl_proxy.h"
12 #include "cc/test/fake_layer_tree_host_impl.h" 12 #include "cc/test/fake_layer_tree_host_impl.h"
13 #include "cc/test/geometry_test_utils.h" 13 #include "cc/test/geometry_test_utils.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 #include "third_party/skia/include/effects/SkBlurImageFilter.h" 15 #include "third_party/skia/include/effects/SkBlurImageFilter.h"
16 #include "ui/gfx/quad_f.h" 16 #include "ui/gfx/quad_f.h"
17 #include <public/WebFilterOperation.h> 17 #include <public/WebFilterOperation.h>
18 #include <public/WebFilterOperations.h> 18 #include <public/WebFilterOperations.h>
19 19
20 using namespace WebKit; 20 using namespace WebKit;
21 using namespace WebKitTests;
22 21
23 namespace cc { 22 namespace cc {
24 namespace { 23 namespace {
25 24
26 void executeCalculateDrawProperties(LayerImpl* root, std::vector<LayerImpl*>& re nderSurfaceLayerList) 25 void executeCalculateDrawProperties(LayerImpl* root, std::vector<LayerImpl*>& re nderSurfaceLayerList)
27 { 26 {
28 int dummyMaxTextureSize = 512; 27 int dummyMaxTextureSize = 512;
29 28
30 // Sanity check: The test itself should create the root layer's render surfa ce, so 29 // Sanity check: The test itself should create the root layer's render surfa ce, so
31 // that the surface (and its damage tracker) can persist acros s multiple 30 // that the surface (and its damage tracker) can persist acros s multiple
(...skipping 1131 matching lines...) Expand 10 before | Expand all | Expand 10 after
1163 EXPECT_TRUE(rootDamageRect.IsEmpty()); 1162 EXPECT_TRUE(rootDamageRect.IsEmpty());
1164 1163
1165 // Damage should remain empty even after one frame, since there's yet no new damage 1164 // Damage should remain empty even after one frame, since there's yet no new damage
1166 emulateDrawingOneFrame(root.get()); 1165 emulateDrawingOneFrame(root.get());
1167 rootDamageRect = root->renderSurface()->damageTracker()->currentDamageRect() ; 1166 rootDamageRect = root->renderSurface()->damageTracker()->currentDamageRect() ;
1168 EXPECT_TRUE(rootDamageRect.IsEmpty()); 1167 EXPECT_TRUE(rootDamageRect.IsEmpty());
1169 } 1168 }
1170 1169
1171 } // namespace 1170 } // namespace
1172 } // namespace cc 1171 } // namespace cc
OLDNEW
« no previous file with comments | « cc/cc_tests.gyp ('k') | cc/delay_based_time_source_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698