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

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

Issue 2640983002: Rename paint data structures (Closed)
Patch Set: Rebase Created 3 years, 10 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
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 "cc/paint/paint_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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 UpdateRenderText(rect, text, font_list, flags, color, render_text.get()); 268 UpdateRenderText(rect, text, font_list, flags, color, render_text.get());
268 render_text->SetElideBehavior(FADE_TAIL); 269 render_text->SetElideBehavior(FADE_TAIL);
269 270
270 canvas_->save(); 271 canvas_->save();
271 ClipRect(display_rect); 272 ClipRect(display_rect);
272 render_text->Draw(this); 273 render_text->Draw(this);
273 canvas_->restore(); 274 canvas_->restore();
274 } 275 }
275 276
276 } // namespace gfx 277 } // namespace gfx
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698