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

Side by Side Diff: cc/test/fake_picture_pile_impl.cc

Issue 14001009: cc: Add pixel tests for PictureDrawQuad (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixup comment Created 7 years, 7 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/test/fake_picture_pile_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/test/fake_picture_pile_impl.h" 5 #include "cc/test/fake_picture_pile_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "cc/test/impl_side_painting_settings.h" 9 #include "cc/test/impl_side_painting_settings.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 EXPECT_LT(y, tiling_.num_tiles_y()); 73 EXPECT_LT(y, tiling_.num_tiles_y());
74 74
75 if (!HasRecordingAt(x, y)) 75 if (!HasRecordingAt(x, y))
76 return; 76 return;
77 picture_list_map_.erase(std::pair<int, int>(x, y)); 77 picture_list_map_.erase(std::pair<int, int>(x, y));
78 EXPECT_FALSE(HasRecordingAt(x, y)); 78 EXPECT_FALSE(HasRecordingAt(x, y));
79 79
80 UpdateRecordedRegion(); 80 UpdateRecordedRegion();
81 } 81 }
82 82
83 void FakePicturePileImpl::RerecordPile() {
84 for (int y = 0; y < num_tiles_y(); ++y) {
85 for (int x = 0; x < num_tiles_x(); ++x) {
86 RemoveRecordingAt(x, y);
87 AddRecordingAt(x, y);
88 }
89 }
90 }
91
83 } // namespace cc 92 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/fake_picture_pile_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698