public:
explicit ThemeImageSource(const gfx::ImageSkia& source) : source_(source) {
}
- virtual ~ThemeImageSource() {}
+ ~ThemeImageSource() override {}
- virtual gfx::ImageSkiaRep GetImageForScale(float scale) OVERRIDE {
+ gfx::ImageSkiaRep GetImageForScale(float scale) override {
if (source_.HasRepresentation(scale))
return source_.GetRepresentation(scale);
const gfx::ImageSkiaRep& rep_100p = source_.GetRepresentation(1.0f);
explicit ThemeImagePngSource(const PngMap& png_map) : png_map_(png_map) {}
- virtual ~ThemeImagePngSource() {}
+ ~ThemeImagePngSource() override {}
private:
- virtual gfx::ImageSkiaRep GetImageForScale(float scale) OVERRIDE {
+ gfx::ImageSkiaRep GetImageForScale(float scale) override {
ui::ScaleFactor scale_factor = ui::GetSupportedScaleFactor(scale);
// Look up the bitmap for |scale factor| in the bitmap map. If found
// return it.
vertical_offset_(vertical_offset) {
}
- virtual ~TabBackgroundImageSource() {
- }
+ ~TabBackgroundImageSource() override {}
// Overridden from CanvasImageSource:
- virtual void Draw(gfx::Canvas* canvas) OVERRIDE {
+ void Draw(gfx::Canvas* canvas) override {
gfx::ImageSkia bg_tint =
gfx::ImageSkiaOperations::CreateHSLShiftedImage(image_to_tint_,
hsl_shift_);
if (tint_list->GetDouble(0, &hsl.h) &&
tint_list->GetDouble(1, &hsl.s) &&
tint_list->GetDouble(2, &hsl.l)) {
+ MakeHSLShiftValid(&hsl);
int id = GetIntForString(iter.key(), kTintTable, kTintTableLength);
if (id != -1) {
temp_tints[id] = hsl;