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

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

Issue 2770943004: cros: Fix browser header wrongly drawn frame image (Closed)
Patch Set: default parameter Created 3 years, 9 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 #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 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 int x, 436 int x,
437 int y, 437 int y,
438 int w, 438 int w,
439 int h); 439 int h);
440 void TileImageInt(const ImageSkia& image, 440 void TileImageInt(const ImageSkia& image,
441 int src_x, 441 int src_x,
442 int src_y, 442 int src_y,
443 int dest_x, 443 int dest_x,
444 int dest_y, 444 int dest_y,
445 int w, 445 int w,
446 int h); 446 int h,
447 void TileImageInt(const ImageSkia& image, 447 cc::PaintFlags* flags = nullptr);
448 int src_x,
449 int src_y,
450 float tile_scale_x,
451 float tile_scale_y,
452 int dest_x,
453 int dest_y,
454 int w,
455 int h);
456 448
457 // Helper for TileImageInt(). Initializes |flags| for tiling |image| with the 449 // Helper for TileImageInt(). Initializes |flags| for tiling |image| with the
458 // given parameters. Returns false if the provided image does not have a 450 // given parameters. Returns false if the provided image does not have a
459 // representation for the current scale. 451 // representation for the current scale.
460 bool InitPaintFlagsForTiling(const ImageSkia& image, 452 bool InitPaintFlagsForTiling(const ImageSkia& image,
461 int src_x, 453 int src_x,
462 int src_y, 454 int src_y,
463 float tile_scale_x, 455 float tile_scale_x,
464 float tile_scale_y, 456 float tile_scale_y,
465 int dest_x, 457 int dest_x,
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 base::Optional<SkBitmap> bitmap_; 508 base::Optional<SkBitmap> bitmap_;
517 base::Optional<cc::SkiaPaintCanvas> owned_canvas_; 509 base::Optional<cc::SkiaPaintCanvas> owned_canvas_;
518 cc::PaintCanvas* canvas_; 510 cc::PaintCanvas* canvas_;
519 511
520 DISALLOW_COPY_AND_ASSIGN(Canvas); 512 DISALLOW_COPY_AND_ASSIGN(Canvas);
521 }; 513 };
522 514
523 } // namespace gfx 515 } // namespace gfx
524 516
525 #endif // UI_GFX_CANVAS_H_ 517 #endif // UI_GFX_CANVAS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698