OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "ui/gfx/canvas_skia.h" | 5 #include "ui/gfx/canvas.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 | 8 |
9 #include "base/i18n/rtl.h" | 9 #include "base/i18n/rtl.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/win/scoped_gdi_object.h" | 12 #include "base/win/scoped_gdi_object.h" |
13 #include "skia/ext/bitmap_platform_device.h" | 13 #include "skia/ext/bitmap_platform_device.h" |
14 #include "skia/ext/skia_utils_win.h" | 14 #include "skia/ext/skia_utils_win.h" |
15 #include "third_party/skia/include/core/SkShader.h" | 15 #include "third_party/skia/include/core/SkShader.h" |
(...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
570 ClipRect(solid_part); | 570 ClipRect(solid_part); |
571 DrawStringInt(text, font, color, | 571 DrawStringInt(text, font, color, |
572 text_rect.x(), text_rect.y(), | 572 text_rect.x(), text_rect.y(), |
573 text_rect.width(), text_rect.height(), | 573 text_rect.width(), text_rect.height(), |
574 flags); | 574 flags); |
575 canvas_->restore(); | 575 canvas_->restore(); |
576 canvas_->restore(); | 576 canvas_->restore(); |
577 } | 577 } |
578 | 578 |
579 } // namespace gfx | 579 } // namespace gfx |
OLD | NEW |