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.h" | 5 #include "ui/gfx/canvas.h" |
6 | 6 |
| 7 #include <limits.h> |
7 #include <stddef.h> | 8 #include <stddef.h> |
8 #include <stdint.h> | 9 #include <stdint.h> |
9 | 10 |
10 #include "base/i18n/rtl.h" | 11 #include "base/i18n/rtl.h" |
11 #include "base/logging.h" | 12 #include "base/logging.h" |
12 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
13 #include "base/numerics/safe_conversions.h" | 14 #include "base/numerics/safe_conversions.h" |
14 #include "build/build_config.h" | 15 #include "build/build_config.h" |
15 #include "third_party/skia/include/core/SkBitmap.h" | 16 #include "third_party/skia/include/core/SkBitmap.h" |
16 #include "third_party/skia/include/core/SkPixmap.h" | 17 #include "third_party/skia/include/core/SkPixmap.h" |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 UpdateRenderText(rect, text, font_list, flags, color, render_text.get()); | 345 UpdateRenderText(rect, text, font_list, flags, color, render_text.get()); |
345 render_text->SetElideBehavior(FADE_TAIL); | 346 render_text->SetElideBehavior(FADE_TAIL); |
346 | 347 |
347 canvas_->save(); | 348 canvas_->save(); |
348 ClipRect(display_rect); | 349 ClipRect(display_rect); |
349 render_text->Draw(this); | 350 render_text->Draw(this); |
350 canvas_->restore(); | 351 canvas_->restore(); |
351 } | 352 } |
352 | 353 |
353 } // namespace gfx | 354 } // namespace gfx |
OLD | NEW |