OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 // TODO(awalker): clean up the const/non-const reference handling in this test | 5 // TODO(awalker): clean up the const/non-const reference handling in this test |
6 | 6 |
7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
8 | 8 |
9 #if !defined(OS_WIN) | 9 #if !defined(OS_WIN) |
10 #include <unistd.h> | 10 #include <unistd.h> |
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 | 381 |
382 DrawNativeRect(canvas, 0, 0, 100, 100); | 382 DrawNativeRect(canvas, 0, 0, 100, 100); |
383 #if defined(OS_WIN) | 383 #if defined(OS_WIN) |
384 canvas.getTopPlatformDevice().makeOpaque(kLayerX, kLayerY, | 384 canvas.getTopPlatformDevice().makeOpaque(kLayerX, kLayerY, |
385 kLayerW, kLayerH); | 385 kLayerW, kLayerH); |
386 #endif | 386 #endif |
387 } | 387 } |
388 canvas.restore(); | 388 canvas.restore(); |
389 EXPECT_TRUE(VerifyRoundedRect(canvas, SK_ColorWHITE, SK_ColorBLACK, | 389 EXPECT_TRUE(VerifyRoundedRect(canvas, SK_ColorWHITE, SK_ColorBLACK, |
390 kInnerX + 1, kInnerY + 1, kInnerW, kInnerH)); | 390 kInnerX + 1, kInnerY + 1, kInnerW, kInnerH)); |
| 391 #endif |
391 } | 392 } |
392 #endif | |
393 | 393 |
394 } // namespace skia | 394 } // namespace skia |
OLD | NEW |