OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/basictypes.h" | 5 #include "base/basictypes.h" |
6 #include "base/shared_memory.h" | 6 #include "base/memory/shared_memory.h" |
7 #include "skia/ext/platform_canvas.h" | 7 #include "skia/ext/platform_canvas.h" |
8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
9 #include "ui/gfx/blit.h" | 9 #include "ui/gfx/blit.h" |
10 #include "ui/gfx/point.h" | 10 #include "ui/gfx/point.h" |
11 #include "ui/gfx/rect.h" | 11 #include "ui/gfx/rect.h" |
12 | 12 |
13 namespace { | 13 namespace { |
14 | 14 |
15 // Fills the given canvas with the values by duplicating the values into each | 15 // Fills the given canvas with the values by duplicating the values into each |
16 // color channel for the corresponding pixel. | 16 // color channel for the corresponding pixel. |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 { 0x30, 0x31, 0x32, 0x33, 0x34 }, | 157 { 0x30, 0x31, 0x32, 0x33, 0x34 }, |
158 { 0x40, 0x41, 0x42, 0x43, 0x44 }}; | 158 { 0x40, 0x41, 0x42, 0x43, 0x44 }}; |
159 SetToCanvas<5, 5>(canvas.get(), initial_values); | 159 SetToCanvas<5, 5>(canvas.get(), initial_values); |
160 | 160 |
161 // Sanity check on input. | 161 // Sanity check on input. |
162 VerifyCanvasValues<5, 5>(canvas.get(), initial_values); | 162 VerifyCanvasValues<5, 5>(canvas.get(), initial_values); |
163 } | 163 } |
164 | 164 |
165 #endif | 165 #endif |
166 | 166 |
OLD | NEW |