Index: ui/aura/window_unittest.cc |
diff --git a/ui/aura/window_unittest.cc b/ui/aura/window_unittest.cc |
index c7a06292726ff214e801c7beafb1977029b80a88..0643cc22772f907088da166b15dc1934319004e1 100644 |
--- a/ui/aura/window_unittest.cc |
+++ b/ui/aura/window_unittest.cc |
@@ -31,7 +31,6 @@ |
#include "ui/base/hit_test.h" |
#include "ui/compositor/layer.h" |
#include "ui/compositor/layer_animation_observer.h" |
-#include "ui/compositor/paint_context.h" |
#include "ui/compositor/scoped_animation_duration_scale_mode.h" |
#include "ui/compositor/scoped_layer_animation_settings.h" |
#include "ui/compositor/test/test_layers.h" |
@@ -2841,47 +2840,6 @@ TEST_F(WindowTest, OnWindowHierarchyChange) { |
namespace { |
-// Tracks the number of times paint is invoked along with what the clip and |
-// translate was. |
-class PaintWindowDelegate : public TestWindowDelegate { |
- public: |
- PaintWindowDelegate() : paint_count_(0) {} |
- ~PaintWindowDelegate() override {} |
- |
- const gfx::Rect& most_recent_paint_clip_bounds() const { |
- return most_recent_paint_clip_bounds_; |
- } |
- |
- const gfx::Vector2d& most_recent_paint_matrix_offset() const { |
- return most_recent_paint_matrix_offset_; |
- } |
- |
- void clear_paint_count() { paint_count_ = 0; } |
- int paint_count() const { return paint_count_; } |
- |
- // TestWindowDelegate:: |
- void OnPaint(const ui::PaintContext& context) override { |
- gfx::Canvas* canvas = context.canvas(); |
- paint_count_++; |
- canvas->GetClipBounds(&most_recent_paint_clip_bounds_); |
- const SkMatrix& matrix = canvas->sk_canvas()->getTotalMatrix(); |
- most_recent_paint_matrix_offset_ = gfx::Vector2d( |
- SkScalarFloorToInt(matrix.getTranslateX()), |
- SkScalarFloorToInt(matrix.getTranslateY())); |
- } |
- |
- private: |
- int paint_count_; |
- gfx::Rect most_recent_paint_clip_bounds_; |
- gfx::Vector2d most_recent_paint_matrix_offset_; |
- |
- DISALLOW_COPY_AND_ASSIGN(PaintWindowDelegate); |
-}; |
- |
-} // namespace |
- |
-namespace { |
- |
class TestLayerAnimationObserver : public ui::LayerAnimationObserver { |
public: |
TestLayerAnimationObserver() |