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

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

Issue 13820002: cc: Don't DCHECK for layers with non-invertible transforms. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/layer_tree_host_common_unittest.cc ('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 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/layer_tree_host.h" 5 #include "cc/trees/layer_tree_host.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/synchronization/lock.h" 9 #include "base/synchronization/lock.h"
10 #include "cc/animation/timing_function.h" 10 #include "cc/animation/timing_function.h"
(...skipping 2167 matching lines...) Expand 10 before | Expand all | Expand 10 after
2178 2178
2179 virtual void AfterTest() OVERRIDE { 2179 virtual void AfterTest() OVERRIDE {
2180 } 2180 }
2181 2181
2182 private: 2182 private:
2183 base::TimeTicks frame_time_; 2183 base::TimeTicks frame_time_;
2184 }; 2184 };
2185 2185
2186 MULTI_THREAD_TEST_F(LayerTreeHostTestVSyncNotification); 2186 MULTI_THREAD_TEST_F(LayerTreeHostTestVSyncNotification);
2187 2187
2188 class LayerTreeHostTestUninvertibleTransformDoesNotBlockActivation
2189 : public LayerTreeHostTest {
2190 protected:
2191 virtual void InitializeSettings(LayerTreeSettings* settings) OVERRIDE {
2192 settings->impl_side_painting = true;
2193 }
2194
2195 virtual void SetupTree() OVERRIDE {
2196 LayerTreeHostTest::SetupTree();
2197
2198 scoped_refptr<Layer> layer = PictureLayer::Create(&client_);
2199 layer->SetTransform(gfx::Transform(0.0, 0.0, 0.0, 0.0, 0.0, 0.0));
2200 layer->SetBounds(gfx::Size(10, 10));
2201 layer_tree_host()->root_layer()->AddChild(layer);
2202 }
2203
2204 virtual void BeginTest() OVERRIDE {
2205 PostSetNeedsCommitToMainThread();
2206 }
2207
2208 virtual void TreeActivatedOnThread(LayerTreeHostImpl* host_impl) {
2209 EndTest();
2210 }
2211
2212 virtual void AfterTest() OVERRIDE {
2213 }
2214
2215 FakeContentLayerClient client_;
2216 };
2217
2218 MULTI_THREAD_TEST_F(
2219 LayerTreeHostTestUninvertibleTransformDoesNotBlockActivation);
2220
2188 } // namespace 2221 } // namespace
2189 } // namespace cc 2222 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_common_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698