| 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 <limits.h> | 5 #include <limits.h> |
| 6 #include <stddef.h> | 6 #include <stddef.h> |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| 11 #include "skia/ext/cdl_canvas.h" |
| 11 #include "ui/gfx/canvas.h" | 12 #include "ui/gfx/canvas.h" |
| 12 #include "ui/gfx/geometry/insets.h" | 13 #include "ui/gfx/geometry/insets.h" |
| 13 #include "ui/gfx/render_text.h" | 14 #include "ui/gfx/render_text.h" |
| 14 #include "ui/gfx/skia_util.h" | 15 #include "ui/gfx/skia_util.h" |
| 15 #include "ui/gfx/text_elider.h" | 16 #include "ui/gfx/text_elider.h" |
| 16 #include "ui/gfx/text_utils.h" | 17 #include "ui/gfx/text_utils.h" |
| 17 | 18 |
| 18 namespace gfx { | 19 namespace gfx { |
| 19 | 20 |
| 20 namespace { | 21 namespace { |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 UpdateRenderText(rect, text, font_list, flags, color, render_text.get()); | 277 UpdateRenderText(rect, text, font_list, flags, color, render_text.get()); |
| 277 render_text->SetElideBehavior(FADE_TAIL); | 278 render_text->SetElideBehavior(FADE_TAIL); |
| 278 | 279 |
| 279 canvas_->save(); | 280 canvas_->save(); |
| 280 ClipRect(display_rect); | 281 ClipRect(display_rect); |
| 281 render_text->Draw(this); | 282 render_text->Draw(this); |
| 282 canvas_->restore(); | 283 canvas_->restore(); |
| 283 } | 284 } |
| 284 | 285 |
| 285 } // namespace gfx | 286 } // namespace gfx |
| OLD | NEW |