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

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

Issue 2523673004: [NOT FOR COMMIT] Fully replace SkCanvas uses.
Patch Set: Support Android build. Created 3 years, 12 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
« no previous file with comments | « ui/gfx/canvas_paint_mac.mm ('k') | ui/gfx/harfbuzz_font_skia.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ui/gfx/canvas_paint_mac.mm ('k') | ui/gfx/harfbuzz_font_skia.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698