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

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

Issue 1409713002: cc: Remove cc::ContentLayerClient::PaintContents(SkCanvas*, ...). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: restore comment Created 5 years, 2 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
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_common.h" 5 #include "cc/trees/layer_tree_host_common.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <set> 8 #include <set>
9 9
10 #include "cc/animation/keyframed_animation_curve.h" 10 #include "cc/animation/keyframed_animation_curve.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 private: 53 private:
54 ~LayerWithForcedDrawsContent() override {} 54 ~LayerWithForcedDrawsContent() override {}
55 }; 55 };
56 56
57 bool LayerWithForcedDrawsContent::DrawsContent() const { return true; } 57 bool LayerWithForcedDrawsContent::DrawsContent() const { return true; }
58 58
59 class MockContentLayerClient : public ContentLayerClient { 59 class MockContentLayerClient : public ContentLayerClient {
60 public: 60 public:
61 MockContentLayerClient() {} 61 MockContentLayerClient() {}
62 ~MockContentLayerClient() override {} 62 ~MockContentLayerClient() override {}
63 void PaintContents(SkCanvas* canvas,
64 const gfx::Rect& clip,
65 PaintingControlSetting picture_control) override {}
66 scoped_refptr<DisplayItemList> PaintContentsToDisplayList( 63 scoped_refptr<DisplayItemList> PaintContentsToDisplayList(
67 const gfx::Rect& clip, 64 const gfx::Rect& clip,
68 PaintingControlSetting picture_control) override { 65 PaintingControlSetting picture_control) override {
69 NOTIMPLEMENTED(); 66 NOTIMPLEMENTED();
70 return nullptr; 67 return nullptr;
71 } 68 }
72 bool FillsBoundsCompletely() const override { return false; } 69 bool FillsBoundsCompletely() const override { return false; }
73 size_t GetApproximateUnsharedMemoryUsage() const override { return 0; } 70 size_t GetApproximateUnsharedMemoryUsage() const override { return 0; }
74 }; 71 };
75 72
(...skipping 7955 matching lines...) Expand 10 before | Expand all | Expand 10 after
8031 SetLayerPropertiesForTesting(clip_child, identity_matrix, gfx::Point3F(), 8028 SetLayerPropertiesForTesting(clip_child, identity_matrix, gfx::Point3F(),
8032 gfx::PointF(), gfx::Size(30, 30), true, false, 8029 gfx::PointF(), gfx::Size(30, 30), true, false,
8033 false); 8030 false);
8034 ExecuteCalculateDrawProperties(root); 8031 ExecuteCalculateDrawProperties(root);
8035 8032
8036 EXPECT_EQ(gfx::Rect(-10, -10, 30, 30), render_surface2->clip_rect()); 8033 EXPECT_EQ(gfx::Rect(-10, -10, 30, 30), render_surface2->clip_rect());
8037 } 8034 }
8038 8035
8039 } // namespace 8036 } // namespace
8040 } // namespace cc 8037 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/solid_color_content_layer_client.cc ('k') | cc/trees/layer_tree_host_pixeltest_masks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698