| OLD | NEW | 
|     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  Loading... | 
|    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  Loading... | 
|  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 | 
| OLD | NEW |