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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/GradientGeneratedImage.h

Issue 2640983002: Rename paint data structures (Closed)
Patch Set: DrawingDisplayItem 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 /* 1 /*
2 * Copyright (C) 2008, 2012 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2008, 2012 Apple Computer, Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 26 matching lines...) Expand all
37 class PLATFORM_EXPORT GradientGeneratedImage final : public GeneratedImage { 37 class PLATFORM_EXPORT GradientGeneratedImage final : public GeneratedImage {
38 public: 38 public:
39 static PassRefPtr<GradientGeneratedImage> create( 39 static PassRefPtr<GradientGeneratedImage> create(
40 PassRefPtr<Gradient> generator, 40 PassRefPtr<Gradient> generator,
41 const IntSize& size) { 41 const IntSize& size) {
42 return adoptRef(new GradientGeneratedImage(std::move(generator), size)); 42 return adoptRef(new GradientGeneratedImage(std::move(generator), size));
43 } 43 }
44 44
45 ~GradientGeneratedImage() override {} 45 ~GradientGeneratedImage() override {}
46 46
47 bool applyShader(SkPaint&, const SkMatrix&, const ColorBehavior&) override; 47 bool applyShader(PaintFlags&, const SkMatrix&, const ColorBehavior&) override;
48 48
49 protected: 49 protected:
50 void draw(SkCanvas*, 50 void draw(SkCanvas*,
51 const SkPaint&, 51 const PaintFlags&,
52 const FloatRect&, 52 const FloatRect&,
53 const FloatRect&, 53 const FloatRect&,
54 RespectImageOrientationEnum, 54 RespectImageOrientationEnum,
55 ImageClampingMode, 55 ImageClampingMode,
56 const ColorBehavior&) override; 56 const ColorBehavior&) override;
57 void drawTile(GraphicsContext&, const FloatRect&) override; 57 void drawTile(GraphicsContext&, const FloatRect&) override;
58 58
59 GradientGeneratedImage(PassRefPtr<Gradient> generator, const IntSize& size) 59 GradientGeneratedImage(PassRefPtr<Gradient> generator, const IntSize& size)
60 : GeneratedImage(size), m_gradient(generator) {} 60 : GeneratedImage(size), m_gradient(generator) {}
61 61
62 RefPtr<Gradient> m_gradient; 62 RefPtr<Gradient> m_gradient;
63 }; 63 };
64 64
65 } // namespace blink 65 } // namespace blink
66 66
67 #endif 67 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698