Changeset 84474 in webkit


Ignore:
Timestamp:
Apr 21, 2011 12:24:57 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-04-21 Jon Lee <jonlee@apple.com>

Reviewed by Maciej Stachowiak.

remove unneeded function from graphicscontext3d.cpp (59076)
https://bugs.webkit.org/show_bug.cgi?id=59076
<rdar://problem/9315681>

  • platform/graphics/GraphicsContext3D.cpp: removing unused function unpackOneRowOfRGBA8ToRGBA8
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r84473 r84474  
     12011-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
    1112011-04-21  Alexey Proskuryakov  <ap@apple.com>
    212
  • trunk/Source/WebCore/platform/graphics/GraphicsContext3D.cpp

    r84441 r84474  
    4545namespace {
    4646
    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     }
     47uint8_t convertColor16LittleTo8(uint16_t value)
     48{
     49    return value >> 8;
     50}
     51
     52uint8_t convertColor16BigTo8(uint16_t value)
     53{
     54    return static_cast<uint8_t>(value & 0x00FF);
     55}
    5656
    5757} // anonymous namespace
     
    353353// Pixel unpacking routines.
    354354
    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 
    367355void unpackOneRowOfRGBA16LittleToRGBA8(const uint16_t* source, uint8_t* destination, unsigned int pixelsPerRow)
    368356{
Note: See TracChangeset for help on using the changeset viewer.