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

Side by Side Diff: cc/trees/damage_tracker_unittest.cc

Issue 12965007: Fix cpplint errors in cc/(animation|input|layers|trees|test)/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/trees/damage_tracker.cc ('k') | cc/trees/layer_sorter.h » ('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/trees/damage_tracker.h" 5 #include "cc/trees/damage_tracker.h"
6 6
7 #include "cc/base/math_util.h" 7 #include "cc/base/math_util.h"
8 #include "cc/layers/layer_impl.h" 8 #include "cc/layers/layer_impl.h"
9 #include "cc/test/fake_impl_proxy.h" 9 #include "cc/test/fake_impl_proxy.h"
10 #include "cc/test/fake_layer_tree_host_impl.h" 10 #include "cc/test/fake_layer_tree_host_impl.h"
11 #include "cc/test/geometry_test_utils.h" 11 #include "cc/test/geometry_test_utils.h"
12 #include "cc/trees/layer_tree_host_common.h" 12 #include "cc/trees/layer_tree_host_common.h"
13 #include "cc/trees/single_thread_proxy.h" 13 #include "cc/trees/single_thread_proxy.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 #include "third_party/WebKit/Source/Platform/chromium/public/WebFilterOperation. h" 15 #include "third_party/WebKit/Source/Platform/chromium/public/WebFilterOperation. h"
16 #include "third_party/WebKit/Source/Platform/chromium/public/WebFilterOperations .h" 16 #include "third_party/WebKit/Source/Platform/chromium/public/WebFilterOperations .h"
17 #include "third_party/skia/include/effects/SkBlurImageFilter.h" 17 #include "third_party/skia/include/effects/SkBlurImageFilter.h"
18 #include "ui/gfx/quad_f.h" 18 #include "ui/gfx/quad_f.h"
19 19
20 using namespace WebKit; 20 using WebKit::WebFilterOperation;
21 using WebKit::WebFilterOperations;
21 22
22 namespace cc { 23 namespace cc {
23 namespace { 24 namespace {
24 25
25 void ExecuteCalculateDrawProperties( 26 void ExecuteCalculateDrawProperties(
26 LayerImpl* root, 27 LayerImpl* root,
27 std::vector<LayerImpl*>& render_surface_layer_list) { 28 std::vector<LayerImpl*>& render_surface_layer_list) {
28 int dummy_max_texture_size = 512; 29 int dummy_max_texture_size = 512;
29 30
30 // Sanity check: The test itself should create the root layer's render 31 // Sanity check: The test itself should create the root layer's render
(...skipping 1313 matching lines...) Expand 10 before | Expand all | Expand 10 after
1344 // Damage should remain empty even after one frame, since there's yet no new 1345 // Damage should remain empty even after one frame, since there's yet no new
1345 // damage. 1346 // damage.
1346 EmulateDrawingOneFrame(root.get()); 1347 EmulateDrawingOneFrame(root.get());
1347 root_damage_rect = 1348 root_damage_rect =
1348 root->render_surface()->damage_tracker()->current_damage_rect(); 1349 root->render_surface()->damage_tracker()->current_damage_rect();
1349 EXPECT_TRUE(root_damage_rect.IsEmpty()); 1350 EXPECT_TRUE(root_damage_rect.IsEmpty());
1350 } 1351 }
1351 1352
1352 } // namespace 1353 } // namespace
1353 } // namespace cc 1354 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/damage_tracker.cc ('k') | cc/trees/layer_sorter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698