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

Side by Side Diff: ui/gfx/blit_unittest.cc

Issue 392013005: [#1] Delete reduntdant 19 header files in ui/gfx (8 of 19 by this) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sorted includes Created 6 years, 5 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 (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/memory/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/geometry/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.
17 // 17 //
18 // Example values = {{0x0, 0x01}, {0x12, 0xFF}} would give a canvas with: 18 // Example values = {{0x0, 0x01}, {0x12, 0xFF}} would give a canvas with:
19 // 0x00000000 0x01010101 19 // 0x00000000 0x01010101
20 // 0x12121212 0xFFFFFFFF 20 // 0x12121212 0xFFFFFFFF
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 { 0x30, 0x31, 0x32, 0x33, 0x34 }, 162 { 0x30, 0x31, 0x32, 0x33, 0x34 },
163 { 0x40, 0x41, 0x42, 0x43, 0x44 }}; 163 { 0x40, 0x41, 0x42, 0x43, 0x44 }};
164 SetToCanvas<5, 5>(canvas.get(), initial_values); 164 SetToCanvas<5, 5>(canvas.get(), initial_values);
165 165
166 // Sanity check on input. 166 // Sanity check on input.
167 VerifyCanvasValues<5, 5>(canvas.get(), initial_values); 167 VerifyCanvasValues<5, 5>(canvas.get(), initial_values);
168 } 168 }
169 169
170 #endif 170 #endif
171 171
OLDNEW
« ui/aura/window_unittest.cc ('K') | « ui/gfx/blit.cc ('k') | ui/gfx/box_f.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698