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

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

Issue 2712083002: color: Remove blink pre-conversion code (Closed)
Patch Set: Rebase 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 /* 1 /*
2 * Copyright (C) 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2011 Apple 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 bool hasRelativeSize() const override { return false; } 50 bool hasRelativeSize() const override { return false; }
51 51
52 IntSize size() const override { return m_crossfadeSize; } 52 IntSize size() const override { return m_crossfadeSize; }
53 53
54 protected: 54 protected:
55 void draw(PaintCanvas*, 55 void draw(PaintCanvas*,
56 const PaintFlags&, 56 const PaintFlags&,
57 const FloatRect&, 57 const FloatRect&,
58 const FloatRect&, 58 const FloatRect&,
59 RespectImageOrientationEnum, 59 RespectImageOrientationEnum,
60 ImageClampingMode, 60 ImageClampingMode) override;
61 const ColorBehavior&) override;
62 void drawTile(GraphicsContext&, const FloatRect&) final; 61 void drawTile(GraphicsContext&, const FloatRect&) final;
63 62
64 CrossfadeGeneratedImage(PassRefPtr<Image> fromImage, 63 CrossfadeGeneratedImage(PassRefPtr<Image> fromImage,
65 PassRefPtr<Image> toImage, 64 PassRefPtr<Image> toImage,
66 float percentage, 65 float percentage,
67 IntSize crossfadeSize, 66 IntSize crossfadeSize,
68 const IntSize&); 67 const IntSize&);
69 68
70 private: 69 private:
71 void drawCrossfade(PaintCanvas*, 70 void drawCrossfade(PaintCanvas*, const PaintFlags&, ImageClampingMode);
72 const PaintFlags&,
73 ImageClampingMode,
74 const ColorBehavior&);
75 71
76 RefPtr<Image> m_fromImage; 72 RefPtr<Image> m_fromImage;
77 RefPtr<Image> m_toImage; 73 RefPtr<Image> m_toImage;
78 74
79 float m_percentage; 75 float m_percentage;
80 IntSize m_crossfadeSize; 76 IntSize m_crossfadeSize;
81 }; 77 };
82 78
83 } // namespace blink 79 } // namespace blink
84 80
85 #endif 81 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698