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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/Image.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) 2006 Samuel Weinig (sam.weinig@gmail.com) 2 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
3 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 enum ImageClampingMode { 158 enum ImageClampingMode {
159 ClampImageToSourceRect, 159 ClampImageToSourceRect,
160 DoNotClampImageToSourceRect 160 DoNotClampImageToSourceRect
161 }; 161 };
162 162
163 virtual void draw(PaintCanvas*, 163 virtual void draw(PaintCanvas*,
164 const PaintFlags&, 164 const PaintFlags&,
165 const FloatRect& dstRect, 165 const FloatRect& dstRect,
166 const FloatRect& srcRect, 166 const FloatRect& srcRect,
167 RespectImageOrientationEnum, 167 RespectImageOrientationEnum,
168 ImageClampingMode, 168 ImageClampingMode) = 0;
169 const ColorBehavior&) = 0;
170 169
171 virtual bool applyShader(PaintFlags&, 170 virtual bool applyShader(PaintFlags&, const SkMatrix& localMatrix);
172 const SkMatrix& localMatrix,
173 const ColorBehavior&);
174 171
175 // Compute the tile which contains a given point (assuming a repeating tile 172 // Compute the tile which contains a given point (assuming a repeating tile
176 // grid). The point and returned value are in destination grid space. 173 // grid). The point and returned value are in destination grid space.
177 static FloatRect computeTileContaining(const FloatPoint&, 174 static FloatRect computeTileContaining(const FloatPoint&,
178 const FloatSize& tileSize, 175 const FloatSize& tileSize,
179 const FloatPoint& tilePhase, 176 const FloatPoint& tilePhase,
180 const FloatSize& tileSpacing); 177 const FloatSize& tileSpacing);
181 178
182 // Compute the image subset which gets mapped onto |dest|, when the whole 179 // Compute the image subset which gets mapped onto |dest|, when the whole
183 // image is drawn into |tile|. Assumes |tile| contains |dest|. The tile rect 180 // image is drawn into |tile|. Assumes |tile| contains |dest|. The tile rect
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 bool m_imageObserverDisabled; 220 bool m_imageObserverDisabled;
224 }; 221 };
225 222
226 #define DEFINE_IMAGE_TYPE_CASTS(typeName) \ 223 #define DEFINE_IMAGE_TYPE_CASTS(typeName) \
227 DEFINE_TYPE_CASTS(typeName, Image, image, image->is##typeName(), \ 224 DEFINE_TYPE_CASTS(typeName, Image, image, image->is##typeName(), \
228 image.is##typeName()) 225 image.is##typeName())
229 226
230 } // namespace blink 227 } // namespace blink
231 228
232 #endif 229 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp ('k') | third_party/WebKit/Source/platform/graphics/Image.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698