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

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

Issue 388643002: Rotation into Video Layer + Content Transform (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reverted to Patch 11 Created 6 years, 4 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
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/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "base/synchronization/lock.h" 10 #include "base/synchronization/lock.h"
(...skipping 3968 matching lines...) Expand 10 before | Expand all | Expand 10 after
3979 int num_draws_; 3979 int num_draws_;
3980 }; 3980 };
3981 3981
3982 // VideoLayer must support being invalidated and then passing that along 3982 // VideoLayer must support being invalidated and then passing that along
3983 // to the compositor thread, even though no resources are updated in 3983 // to the compositor thread, even though no resources are updated in
3984 // response to that invalidation. 3984 // response to that invalidation.
3985 class LayerTreeHostTestVideoLayerInvalidate : public LayerInvalidateCausesDraw { 3985 class LayerTreeHostTestVideoLayerInvalidate : public LayerInvalidateCausesDraw {
3986 public: 3986 public:
3987 virtual void SetupTree() OVERRIDE { 3987 virtual void SetupTree() OVERRIDE {
3988 LayerTreeHostTest::SetupTree(); 3988 LayerTreeHostTest::SetupTree();
3989 scoped_refptr<VideoLayer> video_layer = VideoLayer::Create(&provider_); 3989 scoped_refptr<VideoLayer> video_layer =
3990 VideoLayer::Create(&provider_, media::VIDEO_ROTATION_0);
3990 video_layer->SetBounds(gfx::Size(10, 10)); 3991 video_layer->SetBounds(gfx::Size(10, 10));
3991 video_layer->SetIsDrawable(true); 3992 video_layer->SetIsDrawable(true);
3992 layer_tree_host()->root_layer()->AddChild(video_layer); 3993 layer_tree_host()->root_layer()->AddChild(video_layer);
3993 3994
3994 invalidate_layer_ = video_layer; 3995 invalidate_layer_ = video_layer;
3995 } 3996 }
3996 3997
3997 private: 3998 private:
3998 FakeVideoFrameProvider provider_; 3999 FakeVideoFrameProvider provider_;
3999 }; 4000 };
(...skipping 911 matching lines...) Expand 10 before | Expand all | Expand 10 after
4911 const gfx::Size bounds_; 4912 const gfx::Size bounds_;
4912 FakeContentLayerClient client_; 4913 FakeContentLayerClient client_;
4913 scoped_refptr<ContentLayerWithUpdateTracking> content_layer_; 4914 scoped_refptr<ContentLayerWithUpdateTracking> content_layer_;
4914 scoped_refptr<FakePictureLayer> picture_layer_; 4915 scoped_refptr<FakePictureLayer> picture_layer_;
4915 Layer* child_layer_; 4916 Layer* child_layer_;
4916 }; 4917 };
4917 4918
4918 MULTI_THREAD_TEST_F(LayerTreeHostTestContinuousPainting); 4919 MULTI_THREAD_TEST_F(LayerTreeHostTestContinuousPainting);
4919 4920
4920 } // namespace cc 4921 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698