Chromium Code Reviews| 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 #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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 259 void DrawRect(const RectF& rect, SkColor color, SkBlendMode mode); | 259 void DrawRect(const RectF& rect, SkColor color, SkBlendMode mode); |
| 260 | 260 |
| 261 // Draws the given rectangle with the given |flags| parameters. | 261 // Draws the given rectangle with the given |flags| parameters. |
| 262 // DEPRECATED in favor of the RectF version below. | 262 // DEPRECATED in favor of the RectF version below. |
| 263 // TODO(funkysidd): Remove this (http://crbug.com/553726) | 263 // TODO(funkysidd): Remove this (http://crbug.com/553726) |
| 264 void DrawRect(const Rect& rect, const cc::PaintFlags& flags); | 264 void DrawRect(const Rect& rect, const cc::PaintFlags& flags); |
| 265 | 265 |
| 266 // Draws the given rectangle with the given |flags| parameters. | 266 // Draws the given rectangle with the given |flags| parameters. |
| 267 void DrawRect(const RectF& rect, const cc::PaintFlags& flags); | 267 void DrawRect(const RectF& rect, const cc::PaintFlags& flags); |
| 268 | 268 |
| 269 // Draw the given point with the given |flags| parameters. | |
| 270 // DEPRECATED in favor of the RectF version below. | |
| 271 // TODO(funkysidd): Remove this (http://crbug.com/553726) | |
| 272 void DrawPoint(const Point& p, const cc::PaintFlags& flags); | |
|
enne (OOO)
2017/02/27 01:56:21
Nobody is using DrawPoint anywhere, so removing th
| |
| 273 | |
| 274 // Draw the given point with the given |flags| parameters. | |
| 275 void DrawPoint(const PointF& p, const cc::PaintFlags& flags); | |
| 276 | |
| 277 // Draws a single pixel line with the specified color. | 269 // Draws a single pixel line with the specified color. |
| 278 // DEPRECATED in favor of the RectF version below. | 270 // DEPRECATED in favor of the RectF version below. |
| 279 // TODO(funkysidd): Remove this (http://crbug.com/553726) | 271 // TODO(funkysidd): Remove this (http://crbug.com/553726) |
| 280 void DrawLine(const Point& p1, const Point& p2, SkColor color); | 272 void DrawLine(const Point& p1, const Point& p2, SkColor color); |
| 281 | 273 |
| 282 // Draws a single pixel line with the specified color. | 274 // Draws a single pixel line with the specified color. |
| 283 void DrawLine(const PointF& p1, const PointF& p2, SkColor color); | 275 void DrawLine(const PointF& p1, const PointF& p2, SkColor color); |
| 284 | 276 |
| 285 // Draws a line with the given |flags| parameters. | 277 // Draws a line with the given |flags| parameters. |
| 286 // DEPRECATED in favor of the RectF version below. | 278 // DEPRECATED in favor of the RectF version below. |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 512 // but surface_ will be null. | 504 // but surface_ will be null. |
| 513 sk_sp<cc::PaintSurface> surface_; | 505 sk_sp<cc::PaintSurface> surface_; |
| 514 cc::PaintCanvas* canvas_; | 506 cc::PaintCanvas* canvas_; |
| 515 | 507 |
| 516 DISALLOW_COPY_AND_ASSIGN(Canvas); | 508 DISALLOW_COPY_AND_ASSIGN(Canvas); |
| 517 }; | 509 }; |
| 518 | 510 |
| 519 } // namespace gfx | 511 } // namespace gfx |
| 520 | 512 |
| 521 #endif // UI_GFX_CANVAS_H_ | 513 #endif // UI_GFX_CANVAS_H_ |
| OLD | NEW |