OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "base/memory/scoped_ptr.h" | 5 #include "base/memory/scoped_ptr.h" |
6 #include "base/message_loop/message_loop.h" | 6 #include "base/message_loop/message_loop.h" |
7 #include "cc/output/software_frame_data.h" | 7 #include "cc/output/software_frame_data.h" |
8 #include "content/browser/aura/software_output_device_ozone.h" | 8 #include "content/browser/compositor/software_output_device_ozone.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
10 #include "third_party/skia/include/core/SkBitmapDevice.h" | 10 #include "third_party/skia/include/core/SkBitmapDevice.h" |
11 #include "ui/compositor/compositor.h" | 11 #include "ui/compositor/compositor.h" |
12 #include "ui/compositor/test/context_factories_for_test.h" | 12 #include "ui/compositor/test/context_factories_for_test.h" |
13 #include "ui/gfx/ozone/surface_factory_ozone.h" | 13 #include "ui/gfx/ozone/surface_factory_ozone.h" |
14 #include "ui/gfx/size.h" | 14 #include "ui/gfx/size.h" |
15 #include "ui/gfx/skia_util.h" | 15 #include "ui/gfx/skia_util.h" |
16 #include "ui/gfx/vsync_provider.h" | 16 #include "ui/gfx/vsync_provider.h" |
17 #include "ui/gl/gl_implementation.h" | 17 #include "ui/gl/gl_implementation.h" |
18 | 18 |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 // painted. | 187 // painted. |
188 for (int i = 0; i < area.height(); ++i) { | 188 for (int i = 0; i < area.height(); ++i) { |
189 for (int j = 0; j < area.width(); ++j) { | 189 for (int j = 0; j < area.width(); ++j) { |
190 if (j < damage.width() && i < damage.height()) | 190 if (j < damage.width() && i < damage.height()) |
191 EXPECT_EQ(SK_ColorWHITE, bitmap.getColor(j, i)); | 191 EXPECT_EQ(SK_ColorWHITE, bitmap.getColor(j, i)); |
192 else | 192 else |
193 EXPECT_EQ(SK_ColorBLACK, bitmap.getColor(j, i)); | 193 EXPECT_EQ(SK_ColorBLACK, bitmap.getColor(j, i)); |
194 } | 194 } |
195 } | 195 } |
196 } | 196 } |
OLD | NEW |