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

Side by Side Diff: cc/picture_layer_impl_unittest.cc

Issue 12379055: Changed SoftwareOutputDevice interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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/output_surface.h ('k') | cc/software_frame_data.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 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/picture_layer_impl.h" 5 #include "cc/picture_layer_impl.h"
6 6
7 #include "cc/layer_tree_impl.h" 7 #include "cc/layer_tree_impl.h"
8 #include "cc/picture_layer.h" 8 #include "cc/picture_layer.h"
9 #include "cc/test/fake_content_layer_client.h" 9 #include "cc/test/fake_content_layer_client.h"
10 #include "cc/test/fake_impl_proxy.h" 10 #include "cc/test/fake_impl_proxy.h"
11 #include "cc/test/fake_layer_tree_host_impl.h" 11 #include "cc/test/fake_layer_tree_host_impl.h"
12 #include "cc/test/fake_output_surface.h" 12 #include "cc/test/fake_output_surface.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 #include "third_party/skia/include/core/SkDevice.h"
jamesr 2013/03/05 21:41:30 Do you need this new include?
slavi 2013/03/05 21:47:50 Yes, fails to compile without it. This file is in
14 #include "ui/gfx/rect_conversions.h" 15 #include "ui/gfx/rect_conversions.h"
15 16
16 namespace cc { 17 namespace cc {
17 namespace { 18 namespace {
18 19
19 class TestablePictureLayerImpl : public PictureLayerImpl { 20 class TestablePictureLayerImpl : public PictureLayerImpl {
20 public: 21 public:
21 static scoped_ptr<TestablePictureLayerImpl> create( 22 static scoped_ptr<TestablePictureLayerImpl> create(
22 LayerTreeImpl* treeImpl, 23 LayerTreeImpl* treeImpl,
23 int id, 24 int id,
(...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after
692 active_layer_->CleanUpTilingsOnActiveLayer(used_tilings); 693 active_layer_->CleanUpTilingsOnActiveLayer(used_tilings);
693 ASSERT_EQ(3u, active_layer_->tilings().num_tilings()); 694 ASSERT_EQ(3u, active_layer_->tilings().num_tilings());
694 used_tilings.clear(); 695 used_tilings.clear();
695 active_layer_->CleanUpTilingsOnActiveLayer(used_tilings); 696 active_layer_->CleanUpTilingsOnActiveLayer(used_tilings);
696 ASSERT_EQ(2u, active_layer_->tilings().num_tilings()); 697 ASSERT_EQ(2u, active_layer_->tilings().num_tilings());
697 698
698 } 699 }
699 700
700 } // namespace 701 } // namespace
701 } // namespace cc 702 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output_surface.h ('k') | cc/software_frame_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698