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

Side by Side Diff: ui/gfx/canvas.h

Issue 2689273002: Fix appearance of header row separators in table view at fractional (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | ui/gfx/canvas.cc » ('j') | ui/gfx/canvas.cc » ('J')
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 #ifndef UI_GFX_CANVAS_H_ 5 #ifndef UI_GFX_CANVAS_H_
6 #define UI_GFX_CANVAS_H_ 6 #define UI_GFX_CANVAS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 // Draws a line with the given |flags| parameters. 285 // Draws a line with the given |flags| parameters.
286 // DEPRECATED in favor of the RectF version below. 286 // DEPRECATED in favor of the RectF version below.
287 // TODO(funkysidd): Remove this (http://crbug.com/553726) 287 // TODO(funkysidd): Remove this (http://crbug.com/553726)
288 void DrawLine(const Point& p1, const Point& p2, const cc::PaintFlags& flags); 288 void DrawLine(const Point& p1, const Point& p2, const cc::PaintFlags& flags);
289 289
290 // Draws a line with the given |flags| parameters. 290 // Draws a line with the given |flags| parameters.
291 void DrawLine(const PointF& p1, 291 void DrawLine(const PointF& p1,
292 const PointF& p2, 292 const PointF& p2,
293 const cc::PaintFlags& flags); 293 const cc::PaintFlags& flags);
294 294
295 // Draws a line that's a single DIP. At fractional scale factors, this is
296 // floored to the nearest integral number of pixels.
297 void DrawSharpLine(const PointF& p1, const PointF& p2, SkColor color);
Peter Kasting 2017/02/15 00:43:59 Nit: Is "Sharp" the best name for this? "DrawInte
Evan Stade 2017/02/15 16:54:46 well, naming is hard. I like Sharp better than Int
298
295 // Draws a circle with the given |flags| parameters. 299 // Draws a circle with the given |flags| parameters.
296 // DEPRECATED in favor of the RectF version below. 300 // DEPRECATED in favor of the RectF version below.
297 // TODO(funkysidd): Remove this (http://crbug.com/553726) 301 // TODO(funkysidd): Remove this (http://crbug.com/553726)
298 void DrawCircle(const Point& center_point, 302 void DrawCircle(const Point& center_point,
299 int radius, 303 int radius,
300 const cc::PaintFlags& flags); 304 const cc::PaintFlags& flags);
301 305
302 // Draws a circle with the given |flags| parameters. 306 // Draws a circle with the given |flags| parameters.
303 void DrawCircle(const PointF& center_point, 307 void DrawCircle(const PointF& center_point,
304 float radius, 308 float radius,
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 // but surface_ will be null. 512 // but surface_ will be null.
509 sk_sp<cc::PaintSurface> surface_; 513 sk_sp<cc::PaintSurface> surface_;
510 cc::PaintCanvas* canvas_; 514 cc::PaintCanvas* canvas_;
511 515
512 DISALLOW_COPY_AND_ASSIGN(Canvas); 516 DISALLOW_COPY_AND_ASSIGN(Canvas);
513 }; 517 };
514 518
515 } // namespace gfx 519 } // namespace gfx
516 520
517 #endif // UI_GFX_CANVAS_H_ 521 #endif // UI_GFX_CANVAS_H_
OLDNEW
« no previous file with comments | « no previous file | ui/gfx/canvas.cc » ('j') | ui/gfx/canvas.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698