Changeset 84474 in webkit
- Timestamp:
- Apr 21, 2011 12:24:57 AM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r84473 r84474 1 2011-04-21 Jon Lee <jonlee@apple.com> 2 3 Reviewed by Maciej Stachowiak. 4 5 remove unneeded function from graphicscontext3d.cpp (59076) 6 https://bugs.webkit.org/show_bug.cgi?id=59076 7 <rdar://problem/9315681> 8 9 * platform/graphics/GraphicsContext3D.cpp: removing unused function unpackOneRowOfRGBA8ToRGBA8 10 1 11 2011-04-21 Alexey Proskuryakov <ap@apple.com> 2 12 -
trunk/Source/WebCore/platform/graphics/GraphicsContext3D.cpp
r84441 r84474 45 45 namespace { 46 46 47 48 49 50 51 52 53 54 55 47 uint8_t convertColor16LittleTo8(uint16_t value) 48 { 49 return value >> 8; 50 } 51 52 uint8_t convertColor16BigTo8(uint16_t value) 53 { 54 return static_cast<uint8_t>(value & 0x00FF); 55 } 56 56 57 57 } // anonymous namespace … … 353 353 // Pixel unpacking routines. 354 354 355 void unpackOneRowOfRGBA8ToRGBA8(const uint8_t* source, uint8_t* destination, unsigned int pixelsPerRow)356 {357 for (unsigned int i = 0; i < pixelsPerRow; ++i) {358 destination[0] = source[0];359 destination[1] = source[1];360 destination[2] = source[2];361 destination[3] = source[3];362 source += 4;363 destination += 4;364 }365 }366 367 355 void unpackOneRowOfRGBA16LittleToRGBA8(const uint16_t* source, uint8_t* destination, unsigned int pixelsPerRow) 368 356 {
Note: See TracChangeset
for help on using the changeset viewer.