Changeset 141632 in webkit


Ignore:
Timestamp:
Feb 1, 2013 1:08:31 PM (11 years ago)
Author:
caio.oliveira@openbossa.org
Message:

[Qt] [WK2] Fix build after r141619
https://bugs.webkit.org/show_bug.cgi?id=108680

Reviewed by Benjamin Poulain.

Take a reference instead of a pointer for decoding functions.

  • Platform/unix/SharedMemoryUnix.cpp:

(WebKit::SharedMemory::Handle::decode):

  • Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:

(CoreIPC::::decode):
(CoreIPC::decodeTimingFunction):

  • Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.h:
  • Shared/CoordinatedGraphics/WebCoordinatedSurface.cpp:

(WebKit::WebCoordinatedSurface::Handle::decode):

  • Shared/CoordinatedGraphics/WebCoordinatedSurface.h:

(Handle):

  • Shared/qt/ArgumentCodersQt.cpp:

(CoreIPC::::decode):

  • Shared/qt/ArgumentCodersQt.h:

(CoreIPC):

  • Shared/qt/LayerTreeContextQt.cpp:

(WebKit::LayerTreeContext::decode):

  • Shared/qt/PlatformCertificateInfo.h:

(WebKit::PlatformCertificateInfo::decode):

  • Shared/qt/QtNetworkReplyData.cpp:

(WebKit::QtNetworkReplyData::decode):

  • Shared/qt/QtNetworkReplyData.h:

(QtNetworkReplyData):

  • Shared/qt/QtNetworkRequestData.cpp:

(WebKit::QtNetworkRequestData::decode):

  • Shared/qt/QtNetworkRequestData.h:

(QtNetworkRequestData):

  • Shared/qt/WebCoreArgumentCodersQt.cpp:

(CoreIPC::::decodePlatformData):

Location:
trunk/Source/WebKit2
Files:
15 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r141619 r141632  
     12013-02-01  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
     2
     3        [Qt] [WK2] Fix build after r141619
     4        https://bugs.webkit.org/show_bug.cgi?id=108680
     5
     6        Reviewed by Benjamin Poulain.
     7
     8        Take a reference instead of a pointer for decoding functions.
     9
     10        * Platform/unix/SharedMemoryUnix.cpp:
     11        (WebKit::SharedMemory::Handle::decode):
     12        * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:
     13        (CoreIPC::::decode):
     14        (CoreIPC::decodeTimingFunction):
     15        * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.h:
     16        * Shared/CoordinatedGraphics/WebCoordinatedSurface.cpp:
     17        (WebKit::WebCoordinatedSurface::Handle::decode):
     18        * Shared/CoordinatedGraphics/WebCoordinatedSurface.h:
     19        (Handle):
     20        * Shared/qt/ArgumentCodersQt.cpp:
     21        (CoreIPC::::decode):
     22        * Shared/qt/ArgumentCodersQt.h:
     23        (CoreIPC):
     24        * Shared/qt/LayerTreeContextQt.cpp:
     25        (WebKit::LayerTreeContext::decode):
     26        * Shared/qt/PlatformCertificateInfo.h:
     27        (WebKit::PlatformCertificateInfo::decode):
     28        * Shared/qt/QtNetworkReplyData.cpp:
     29        (WebKit::QtNetworkReplyData::decode):
     30        * Shared/qt/QtNetworkReplyData.h:
     31        (QtNetworkReplyData):
     32        * Shared/qt/QtNetworkRequestData.cpp:
     33        (WebKit::QtNetworkRequestData::decode):
     34        * Shared/qt/QtNetworkRequestData.h:
     35        (QtNetworkRequestData):
     36        * Shared/qt/WebCoreArgumentCodersQt.cpp:
     37        (CoreIPC::::decodePlatformData):
     38
    1392013-02-01  Anders Carlsson  <andersca@apple.com>
    240
  • trunk/Source/WebKit2/Platform/unix/SharedMemoryUnix.cpp

    r132361 r141632  
    6969}
    7070
    71 bool SharedMemory::Handle::decode(CoreIPC::ArgumentDecoder* decoder, Handle& handle)
     71bool SharedMemory::Handle::decode(CoreIPC::ArgumentDecoder& decoder, Handle& handle)
    7272{
    7373    ASSERT_ARG(handle, !handle.m_size);
     
    7575
    7676    CoreIPC::Attachment attachment;
    77     if (!decoder->decode(attachment))
     77    if (!decoder.decode(attachment))
    7878        return false;
    7979
  • trunk/Source/WebKit2/Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp

    r141543 r141632  
    8585}
    8686
    87 bool ArgumentCoder<FloatPoint3D>::decode(ArgumentDecoder* decoder, FloatPoint3D& floatPoint3D)
     87bool ArgumentCoder<FloatPoint3D>::decode(ArgumentDecoder& decoder, FloatPoint3D& floatPoint3D)
    8888{
    8989    return SimpleArgumentCoder<FloatPoint3D>::decode(decoder, floatPoint3D);
     
    9595}
    9696
    97 bool ArgumentCoder<Length>::decode(ArgumentDecoder* decoder, Length& length)
     97bool ArgumentCoder<Length>::decode(ArgumentDecoder& decoder, Length& length)
    9898{
    9999    return SimpleArgumentCoder<Length>::decode(decoder, length);
     
    105105}
    106106
    107 bool ArgumentCoder<TransformationMatrix>::decode(ArgumentDecoder* decoder, TransformationMatrix& transformationMatrix)
     107bool ArgumentCoder<TransformationMatrix>::decode(ArgumentDecoder& decoder, TransformationMatrix& transformationMatrix)
    108108{
    109109    return SimpleArgumentCoder<TransformationMatrix>::decode(decoder, transformationMatrix);
     
    200200}
    201201
    202 bool ArgumentCoder<WebCore::FilterOperations>::decode(ArgumentDecoder* decoder, WebCore::FilterOperations& filters)
     202bool ArgumentCoder<WebCore::FilterOperations>::decode(ArgumentDecoder& decoder, WebCore::FilterOperations& filters)
    203203{
    204204    uint32_t size;
    205     if (!decoder->decode(size))
     205    if (!decoder.decode(size))
    206206        return false;
    207207
     
    211211        FilterOperation::OperationType type;
    212212        RefPtr<FilterOperation> filter;
    213         if (!decoder->decodeEnum(type))
     213        if (!decoder.decodeEnum(type))
    214214            return false;
    215215
     
    220220        case FilterOperation::HUE_ROTATE: {
    221221            double value;
    222             if (!decoder->decode(value))
     222            if (!decoder.decode(value))
    223223                return false;
    224224            filter = BasicColorMatrixFilterOperation::create(value, type);
     
    230230        case FilterOperation::OPACITY: {
    231231            double value;
    232             if (!decoder->decode(value))
     232            if (!decoder.decode(value))
    233233                return false;
    234234            filter = BasicComponentTransferFilterOperation::create(value, type);
     
    248248            if (!ArgumentCoder<IntPoint>::decode(decoder, location))
    249249                return false;
    250             if (!decoder->decode(stdDeviation))
     250            if (!decoder.decode(stdDeviation))
    251251                return false;
    252252            if (!ArgumentCoder<Color>::decode(decoder, color))
     
    264264            // https://bugs.webkit.org/show_bug.cgi?id=102529
    265265            CustomFilterMeshType meshType;
    266             if (!decoder->decodeEnum(meshType))
     266            if (!decoder.decodeEnum(meshType))
    267267                return false;
    268268            int programID = 0;
    269             if (!decoder->decode(programID))
     269            if (!decoder.decode(programID))
    270270                return false;
    271271
    272272            uint32_t parametersSize;
    273             if (!decoder->decode(parametersSize))
     273            if (!decoder.decode(parametersSize))
    274274                return false;
    275275
     
    278278                String name;
    279279                CustomFilterParameter::ParameterType parameterType;
    280                 if (!decoder->decode(name))
     280                if (!decoder.decode(name))
    281281                    return false;
    282                 if (!decoder->decodeEnum(parameterType))
     282                if (!decoder.decodeEnum(parameterType))
    283283                    return false;
    284284
     
    287287                    RefPtr<CustomFilterArrayParameter> arrayParameter = CustomFilterArrayParameter::create(name);
    288288                    uint32_t arrayParameterSize;
    289                     if (!decoder->decode(arrayParameterSize))
     289                    if (!decoder.decode(arrayParameterSize))
    290290                        return false;
    291291                    double arrayParameterValue;
    292292                    for (size_t j = 0; j < arrayParameterSize; ++j) {
    293                         if (!decoder->decode(arrayParameterValue))
     293                        if (!decoder.decode(arrayParameterValue))
    294294                            return false;
    295295                        arrayParameter->addValue(arrayParameterValue);
     
    301301                    RefPtr<CustomFilterNumberParameter> numberParameter = CustomFilterNumberParameter::create(name);
    302302                    uint32_t numberParameterSize;
    303                     if (!decoder->decode(numberParameterSize))
     303                    if (!decoder.decode(numberParameterSize))
    304304                        return false;
    305305                    double numberParameterValue;
    306306                    for (size_t j = 0; j < numberParameterSize; ++j) {
    307                         if (!decoder->decode(numberParameterValue))
     307                        if (!decoder.decode(numberParameterValue))
    308308                            return false;
    309309                        numberParameter->addValue(numberParameterValue);
     
    326326            unsigned meshRows;
    327327            unsigned meshColumns;
    328             if (!decoder->decode(meshRows))
    329                 return false;
    330             if (!decoder->decode(meshColumns))
     328            if (!decoder.decode(meshRows))
     329                return false;
     330            if (!decoder.decode(meshColumns))
    331331                return false;
    332332
     
    360360}
    361361
    362 bool ArgumentCoder<WebCore::CustomFilterProgramInfo>::decode(ArgumentDecoder* decoder, CustomFilterProgramInfo& programInfo)
     362bool ArgumentCoder<WebCore::CustomFilterProgramInfo>::decode(ArgumentDecoder& decoder, CustomFilterProgramInfo& programInfo)
    363363{
    364364    String vertexShaderString;
     
    367367    CustomFilterMeshType meshType;
    368368    CustomFilterProgramMixSettings mixSettings;
    369     if (!decoder->decode(vertexShaderString))
    370         return false;
    371     if (!decoder->decode(fragmentShaderString))
    372         return false;
    373     if (!decoder->decodeEnum(programType))
    374         return false;
    375     if (!decoder->decodeEnum(meshType))
    376         return false;
    377     if (!decoder->decodeEnum(mixSettings.blendMode))
    378         return false;
    379     if (!decoder->decodeEnum(mixSettings.compositeOperator))
     369    if (!decoder.decode(vertexShaderString))
     370        return false;
     371    if (!decoder.decode(fragmentShaderString))
     372        return false;
     373    if (!decoder.decodeEnum(programType))
     374        return false;
     375    if (!decoder.decodeEnum(meshType))
     376        return false;
     377    if (!decoder.decodeEnum(mixSettings.blendMode))
     378        return false;
     379    if (!decoder.decodeEnum(mixSettings.compositeOperator))
    380380        return false;
    381381    programInfo = CustomFilterProgramInfo(vertexShaderString, fragmentShaderString, programType, mixSettings, meshType);
     
    443443}
    444444
    445 bool ArgumentCoder<TransformOperations>::decode(ArgumentDecoder* decoder, TransformOperations& transformOperations)
     445bool ArgumentCoder<TransformOperations>::decode(ArgumentDecoder& decoder, TransformOperations& transformOperations)
    446446{
    447447    uint32_t operationsSize;
    448     if (!decoder->decode(operationsSize))
     448    if (!decoder.decode(operationsSize))
    449449        return false;
    450450
    451451    for (size_t i = 0; i < operationsSize; ++i) {
    452452        TransformOperation::OperationType operationType;
    453         if (!decoder->decodeEnum(operationType))
     453        if (!decoder.decodeEnum(operationType))
    454454            return false;
    455455
     
    461461        case TransformOperation::SCALE_3D: {
    462462            double x, y, z;
    463             if (!decoder->decode(x))
    464                 return false;
    465             if (!decoder->decode(y))
    466                 return false;
    467             if (!decoder->decode(z))
     463            if (!decoder.decode(x))
     464                return false;
     465            if (!decoder.decode(y))
     466                return false;
     467            if (!decoder.decode(z))
    468468                return false;
    469469            transformOperations.operations().append(ScaleTransformOperation::create(x, y, z, operationType));
     
    490490        case TransformOperation::ROTATE_3D: {
    491491            double x, y, z, angle;
    492             if (!decoder->decode(x))
    493                 return false;
    494             if (!decoder->decode(y))
    495                 return false;
    496             if (!decoder->decode(z))
    497                 return false;
    498             if (!decoder->decode(angle))
     492            if (!decoder.decode(x))
     493                return false;
     494            if (!decoder.decode(y))
     495                return false;
     496            if (!decoder.decode(z))
     497                return false;
     498            if (!decoder.decode(angle))
    499499                return false;
    500500            transformOperations.operations().append(RotateTransformOperation::create(x, y, z, angle, operationType));
     
    505505        case TransformOperation::SKEW: {
    506506            double angleX, angleY;
    507             if (!decoder->decode(angleX))
    508                 return false;
    509             if (!decoder->decode(angleY))
     507            if (!decoder.decode(angleX))
     508                return false;
     509            if (!decoder.decode(angleY))
    510510                return false;
    511511            transformOperations.operations().append(SkewTransformOperation::create(angleX, angleY, operationType));
     
    577577}
    578578
    579 bool decodeTimingFunction(ArgumentDecoder* decoder, RefPtr<TimingFunction>& timingFunction)
     579bool decodeTimingFunction(ArgumentDecoder& decoder, RefPtr<TimingFunction>& timingFunction)
    580580{
    581581    TimingFunction::TimingFunctionType type;
    582     if (!decoder->decodeEnum(type))
     582    if (!decoder.decodeEnum(type))
    583583        return false;
    584584
     
    593593        double x1, y1, x2, y2;
    594594        CubicBezierTimingFunction::TimingFunctionPreset bezierPreset;
    595         if (!decoder->decodeEnum(bezierPreset))
     595        if (!decoder.decodeEnum(bezierPreset))
    596596            return false;
    597597        if (bezierPreset != CubicBezierTimingFunction::Custom) {
     
    599599            return true;
    600600        }
    601         if (!decoder->decode(x1))
    602             return false;
    603         if (!decoder->decode(y1))
    604             return false;
    605         if (!decoder->decode(x2))
    606             return false;
    607         if (!decoder->decode(y2))
     601        if (!decoder.decode(x1))
     602            return false;
     603        if (!decoder.decode(y1))
     604            return false;
     605        if (!decoder.decode(x2))
     606            return false;
     607        if (!decoder.decode(y2))
    608608            return false;
    609609
     
    614614        uint32_t numberOfSteps;
    615615        bool stepAtStart;
    616         if (!decoder->decode(numberOfSteps))
    617             return false;
    618         if (!decoder->decode(stepAtStart))
     616        if (!decoder.decode(numberOfSteps))
     617            return false;
     618        if (!decoder.decode(stepAtStart))
    619619            return false;
    620620
     
    668668}
    669669
    670 bool ArgumentCoder<GraphicsLayerAnimation>::decode(ArgumentDecoder* decoder, GraphicsLayerAnimation& animation)
     670bool ArgumentCoder<GraphicsLayerAnimation>::decode(ArgumentDecoder& decoder, GraphicsLayerAnimation& animation)
    671671{
    672672    String name;
     
    684684    RefPtr<Animation> animationObject;
    685685
    686     if (!decoder->decode(name))
    687         return false;
    688     if (!decoder->decode(boxSize))
    689         return false;
    690     if (!decoder->decodeEnum(state))
    691         return false;
    692     if (!decoder->decode(startTime))
    693         return false;
    694     if (!decoder->decode(pauseTime))
    695         return false;
    696     if (!decoder->decode(listsMatch))
    697         return false;
    698     if (!decoder->decodeEnum(direction))
    699         return false;
    700     if (!decoder->decode(fillMode))
    701         return false;
    702     if (!decoder->decode(duration))
    703         return false;
    704     if (!decoder->decode(iterationCount))
     686    if (!decoder.decode(name))
     687        return false;
     688    if (!decoder.decode(boxSize))
     689        return false;
     690    if (!decoder.decodeEnum(state))
     691        return false;
     692    if (!decoder.decode(startTime))
     693        return false;
     694    if (!decoder.decode(pauseTime))
     695        return false;
     696    if (!decoder.decode(listsMatch))
     697        return false;
     698    if (!decoder.decodeEnum(direction))
     699        return false;
     700    if (!decoder.decode(fillMode))
     701        return false;
     702    if (!decoder.decode(duration))
     703        return false;
     704    if (!decoder.decode(iterationCount))
    705705        return false;
    706706    if (!decodeTimingFunction(decoder, timingFunction))
     
    716716
    717717    AnimatedPropertyID property;
    718     if (!decoder->decodeEnum(property))
     718    if (!decoder.decodeEnum(property))
    719719        return false;
    720720    KeyframeValueList keyframes(property);
    721721    unsigned keyframesSize;
    722     if (!decoder->decode(keyframesSize))
     722    if (!decoder.decode(keyframesSize))
    723723        return false;
    724724    for (unsigned i = 0; i < keyframesSize; ++i) {
    725725        float keyTime;
    726726        RefPtr<TimingFunction> timingFunction;
    727         if (!decoder->decode(keyTime))
     727        if (!decoder.decode(keyTime))
    728728            return false;
    729729        if (!decodeTimingFunction(decoder, timingFunction))
     
    733733        case AnimatedPropertyOpacity: {
    734734            float value;
    735             if (!decoder->decode(value))
     735            if (!decoder.decode(value))
    736736                return false;
    737737            keyframes.insert(new FloatAnimationValue(keyTime, value, timingFunction));
     
    740740        case AnimatedPropertyWebkitTransform: {
    741741            TransformOperations transform;
    742             if (!decoder->decode(transform))
     742            if (!decoder.decode(transform))
    743743                return false;
    744744            keyframes.insert(new TransformAnimationValue(keyTime, &transform, timingFunction));
     
    748748        case AnimatedPropertyWebkitFilter: {
    749749            FilterOperations filter;
    750             if (!decoder->decode(filter))
     750            if (!decoder.decode(filter))
    751751                return false;
    752752            keyframes.insert(new FilterAnimationValue(keyTime, &filter, timingFunction));
     
    770770}
    771771
    772 bool ArgumentCoder<GraphicsLayerAnimations>::decode(ArgumentDecoder* decoder, GraphicsLayerAnimations& animations)
    773 {
    774     return decoder->decode(animations.animations());
     772bool ArgumentCoder<GraphicsLayerAnimations>::decode(ArgumentDecoder& decoder, GraphicsLayerAnimations& animations)
     773{
     774    return decoder.decode(animations.animations());
    775775}
    776776
     
    789789}
    790790
    791 bool ArgumentCoder<WebCore::GraphicsSurfaceToken>::decode(ArgumentDecoder* decoder, WebCore::GraphicsSurfaceToken& token)
     791bool ArgumentCoder<WebCore::GraphicsSurfaceToken>::decode(ArgumentDecoder& decoder, WebCore::GraphicsSurfaceToken& token)
    792792{
    793793#if OS(WINDOWS)
    794794    uint64_t frontBufferHandle;
    795     if (!decoder->decode(frontBufferHandle))
     795    if (!decoder.decode(frontBufferHandle))
    796796        return false;
    797797    token.frontBufferHandle = reinterpret_cast<GraphicsSurfaceToken::BufferHandle>(frontBufferHandle);
    798798    uint64_t backBufferHandle;
    799     if (!decoder->decode(backBufferHandle))
     799    if (!decoder.decode(backBufferHandle))
    800800        return false;
    801801    token.backBufferHandle = reinterpret_cast<GraphicsSurfaceToken::BufferHandle>(backBufferHandle);
    802802#elif OS(DARWIN)
    803803    Attachment frontAttachment, backAttachment;
    804     if (!decoder->decode(frontAttachment))
    805         return false;
    806     if (!decoder->decode(backAttachment))
     804    if (!decoder.decode(frontAttachment))
     805        return false;
     806    if (!decoder.decode(backAttachment))
    807807        return false;
    808808
    809809    token = GraphicsSurfaceToken(frontAttachment.port(), backAttachment.port());
    810810#elif OS(LINUX)
    811     if (!decoder->decode(token.frontBufferHandle))
     811    if (!decoder.decode(token.frontBufferHandle))
    812812        return false;
    813813#endif
     
    821821}
    822822
    823 bool ArgumentCoder<CoordinatedLayerInfo>::decode(ArgumentDecoder* decoder, CoordinatedLayerInfo& coordinatedLayerInfo)
     823bool ArgumentCoder<CoordinatedLayerInfo>::decode(ArgumentDecoder& decoder, CoordinatedLayerInfo& coordinatedLayerInfo)
    824824{
    825825    return SimpleArgumentCoder<CoordinatedLayerInfo>::decode(decoder, coordinatedLayerInfo);
     
    831831}
    832832
    833 bool ArgumentCoder<SurfaceUpdateInfo>::decode(ArgumentDecoder* decoder, SurfaceUpdateInfo& surfaceUpdateInfo)
     833bool ArgumentCoder<SurfaceUpdateInfo>::decode(ArgumentDecoder& decoder, SurfaceUpdateInfo& surfaceUpdateInfo)
    834834{
    835835    return SimpleArgumentCoder<SurfaceUpdateInfo>::decode(decoder, surfaceUpdateInfo);
  • trunk/Source/WebKit2/Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.h

    r141571 r141632  
    5959template<> struct ArgumentCoder<WebCore::FloatPoint3D> {
    6060    static void encode(ArgumentEncoder&, const WebCore::FloatPoint3D&);
    61     static bool decode(ArgumentDecoder*, WebCore::FloatPoint3D&);
     61    static bool decode(ArgumentDecoder&, WebCore::FloatPoint3D&);
    6262};
    6363
    6464template<> struct ArgumentCoder<WebCore::Length> {
    6565    static void encode(ArgumentEncoder&, const WebCore::Length&);
    66     static bool decode(ArgumentDecoder*, WebCore::Length&);
     66    static bool decode(ArgumentDecoder&, WebCore::Length&);
    6767};
    6868
    6969template<> struct ArgumentCoder<WebCore::TransformationMatrix> {
    7070    static void encode(ArgumentEncoder&, const WebCore::TransformationMatrix&);
    71     static bool decode(ArgumentDecoder*, WebCore::TransformationMatrix&);
     71    static bool decode(ArgumentDecoder&, WebCore::TransformationMatrix&);
    7272};
    7373
     
    7575template<> struct ArgumentCoder<WebCore::FilterOperations> {
    7676    static void encode(ArgumentEncoder&, const WebCore::FilterOperations&);
    77     static bool decode(ArgumentDecoder*, WebCore::FilterOperations&);
     77    static bool decode(ArgumentDecoder&, WebCore::FilterOperations&);
    7878};
    7979#endif
     
    8282template<> struct ArgumentCoder<WebCore::CustomFilterProgramInfo> {
    8383    static void encode(ArgumentEncoder&, const WebCore::CustomFilterProgramInfo&);
    84     static bool decode(ArgumentDecoder*, WebCore::CustomFilterProgramInfo&);
     84    static bool decode(ArgumentDecoder&, WebCore::CustomFilterProgramInfo&);
    8585};
    8686#endif
     
    8888template<> struct ArgumentCoder<WebCore::TransformOperations> {
    8989    static void encode(ArgumentEncoder&, const WebCore::TransformOperations&);
    90     static bool decode(ArgumentDecoder*, WebCore::TransformOperations&);
     90    static bool decode(ArgumentDecoder&, WebCore::TransformOperations&);
    9191};
    9292
    9393template<> struct ArgumentCoder<WebCore::GraphicsLayerAnimations> {
    9494    static void encode(ArgumentEncoder&, const WebCore::GraphicsLayerAnimations&);
    95     static bool decode(ArgumentDecoder*, WebCore::GraphicsLayerAnimations&);
     95    static bool decode(ArgumentDecoder&, WebCore::GraphicsLayerAnimations&);
    9696};
    9797
    9898template<> struct ArgumentCoder<WebCore::GraphicsLayerAnimation> {
    9999    static void encode(ArgumentEncoder&, const WebCore::GraphicsLayerAnimation&);
    100     static bool decode(ArgumentDecoder*, WebCore::GraphicsLayerAnimation&);
     100    static bool decode(ArgumentDecoder&, WebCore::GraphicsLayerAnimation&);
    101101};
    102102
     
    104104template<> struct ArgumentCoder<WebCore::GraphicsSurfaceToken> {
    105105    static void encode(ArgumentEncoder&, const WebCore::GraphicsSurfaceToken&);
    106     static bool decode(ArgumentDecoder*, WebCore::GraphicsSurfaceToken&);
     106    static bool decode(ArgumentDecoder&, WebCore::GraphicsSurfaceToken&);
    107107};
    108108#endif
     
    110110template<> struct ArgumentCoder<WebCore::CoordinatedLayerInfo> {
    111111    static void encode(ArgumentEncoder&, const WebCore::CoordinatedLayerInfo&);
    112     static bool decode(ArgumentDecoder*, WebCore::CoordinatedLayerInfo&);
     112    static bool decode(ArgumentDecoder&, WebCore::CoordinatedLayerInfo&);
    113113};
    114114
    115115template<> struct ArgumentCoder<WebCore::SurfaceUpdateInfo> {
    116116    static void encode(ArgumentEncoder&, const WebCore::SurfaceUpdateInfo&);
    117     static bool decode(ArgumentDecoder*, WebCore::SurfaceUpdateInfo&);
     117    static bool decode(ArgumentDecoder&, WebCore::SurfaceUpdateInfo&);
    118118};
    119119
  • trunk/Source/WebKit2/Shared/CoordinatedGraphics/WebCoordinatedSurface.cpp

    r141384 r141632  
    5151}
    5252
    53 bool WebCoordinatedSurface::Handle::decode(CoreIPC::ArgumentDecoder* decoder, Handle& handle)
    54 {
    55     if (!decoder->decode(handle.m_size))
    56         return false;
    57     if (!decoder->decode(handle.m_flags))
    58         return false;
    59 #if USE(GRAPHICS_SURFACE)
    60     if (!decoder->decode(handle.m_graphicsSurfaceToken))
     53bool WebCoordinatedSurface::Handle::decode(CoreIPC::ArgumentDecoder& decoder, Handle& handle)
     54{
     55    if (!decoder.decode(handle.m_size))
     56        return false;
     57    if (!decoder.decode(handle.m_flags))
     58        return false;
     59#if USE(GRAPHICS_SURFACE)
     60    if (!decoder.decode(handle.m_graphicsSurfaceToken))
    6161        return false;
    6262    if (handle.m_graphicsSurfaceToken.isValid())
    6363        return true;
    6464#endif
    65     if (!decoder->decode(handle.m_bitmapHandle))
     65    if (!decoder.decode(handle.m_bitmapHandle))
    6666        return false;
    6767
  • trunk/Source/WebKit2/Shared/CoordinatedGraphics/WebCoordinatedSurface.h

    r141543 r141632  
    4545
    4646        void encode(CoreIPC::ArgumentEncoder&) const;
    47         static bool decode(CoreIPC::ArgumentDecoder*, Handle&);
     47        static bool decode(CoreIPC::ArgumentDecoder&, Handle&);
    4848
    4949#if USE(GRAPHICS_SURFACE)
  • trunk/Source/WebKit2/Shared/qt/ArgumentCodersQt.cpp

    r141209 r141632  
    5858}
    5959
    60 bool ArgumentCoder<WebCore::DragData>::decode(ArgumentDecoder* decoder, DragData& dragData)
     60bool ArgumentCoder<WebCore::DragData>::decode(ArgumentDecoder& decoder, DragData& dragData)
    6161{
    6262    IntPoint clientPosition;
     
    6464    uint64_t sourceOperationMask;
    6565    uint64_t flags;
    66     if (!decoder->decode(clientPosition))
     66    if (!decoder.decode(clientPosition))
    6767        return false;
    68     if (!decoder->decode(globalPosition))
     68    if (!decoder.decode(globalPosition))
    6969        return false;
    70     if (!decoder->decode(sourceOperationMask))
     70    if (!decoder.decode(sourceOperationMask))
    7171        return false;
    72     if (!decoder->decode(flags))
     72    if (!decoder.decode(flags))
    7373        return false;
    7474
    7575    bool hasPlatformData;
    76     if (!decoder->decode(hasPlatformData))
     76    if (!decoder.decode(hasPlatformData))
    7777        return false;
    7878
     
    8080    if (hasPlatformData) {
    8181        MIMEDataHashMap map;
    82         if (!decoder->decode(map))
     82        if (!decoder.decode(map))
    8383            return false;
    8484
  • trunk/Source/WebKit2/Shared/qt/ArgumentCodersQt.h

    r133075 r141632  
    2828
    2929void encode(ArgumentEncoder&, const WebCore::DragData&);
    30 bool decode(ArgumentDecoder*, WebCore::DragData&);
     30bool decode(ArgumentDecoder&, WebCore::DragData&);
    3131
    3232template<> struct ArgumentCoder<WebCore::DragData> {
    3333    static void encode(ArgumentEncoder&, const WebCore::DragData&);
    34     static bool decode(ArgumentDecoder*, WebCore::DragData&);
     34    static bool decode(ArgumentDecoder&, WebCore::DragData&);
    3535};
    3636
  • trunk/Source/WebKit2/Shared/qt/LayerTreeContextQt.cpp

    r136912 r141632  
    4646}
    4747
    48 bool LayerTreeContext::decode(CoreIPC::ArgumentDecoder* decoder, LayerTreeContext& context)
     48bool LayerTreeContext::decode(CoreIPC::ArgumentDecoder& decoder, LayerTreeContext& context)
    4949{
    50     return decoder->decode(context.coordinatedLayerID);
     50    return decoder.decode(context.coordinatedLayerID);
    5151}
    5252
  • trunk/Source/WebKit2/Shared/qt/PlatformCertificateInfo.h

    r132361 r141632  
    4747    }
    4848
    49     static bool decode(CoreIPC::ArgumentDecoder*, PlatformCertificateInfo&)
     49    static bool decode(CoreIPC::ArgumentDecoder&, PlatformCertificateInfo&)
    5050    {
    5151        return true;
  • trunk/Source/WebKit2/Shared/qt/QtNetworkReplyData.cpp

    r141209 r141632  
    5151}
    5252
    53 bool QtNetworkReplyData::decode(CoreIPC::ArgumentDecoder* decoder, QtNetworkReplyData& destination)
     53bool QtNetworkReplyData::decode(CoreIPC::ArgumentDecoder& decoder, QtNetworkReplyData& destination)
    5454{
    55     if (!decoder->decode(destination.m_urlString))
     55    if (!decoder.decode(destination.m_urlString))
    5656        return false;
    57     if (!decoder->decode(destination.m_contentType))
     57    if (!decoder.decode(destination.m_contentType))
    5858        return false;
    59     if (!decoder->decode(destination.m_contentLength))
     59    if (!decoder.decode(destination.m_contentLength))
    6060        return false;
    61     if (!decoder->decode(destination.m_replyUuid))
     61    if (!decoder.decode(destination.m_replyUuid))
    6262        return false;
    63     if (!decoder->decode(destination.m_dataHandle))
     63    if (!decoder.decode(destination.m_dataHandle))
    6464        return false;
    6565    return true;
  • trunk/Source/WebKit2/Shared/qt/QtNetworkReplyData.h

    r132361 r141632  
    4444
    4545    void encode(CoreIPC::ArgumentEncoder&) const;
    46     static bool decode(CoreIPC::ArgumentDecoder*, QtNetworkReplyData&);
     46    static bool decode(CoreIPC::ArgumentDecoder&, QtNetworkReplyData&);
    4747
    4848    WTF::String m_urlString;
  • trunk/Source/WebKit2/Shared/qt/QtNetworkRequestData.cpp

    r138449 r141632  
    5757}
    5858
    59 bool QtNetworkRequestData::decode(CoreIPC::ArgumentDecoder* decoder, QtNetworkRequestData& destination)
     59bool QtNetworkRequestData::decode(CoreIPC::ArgumentDecoder& decoder, QtNetworkRequestData& destination)
    6060{
    61     if (!decoder->decode(destination.m_scheme))
     61    if (!decoder.decode(destination.m_scheme))
    6262        return false;
    63     if (!decoder->decode(destination.m_urlString))
     63    if (!decoder.decode(destination.m_urlString))
    6464        return false;
    65     if (!decoder->decode(destination.m_replyUuid))
     65    if (!decoder.decode(destination.m_replyUuid))
    6666        return false;
    6767    return true;
  • trunk/Source/WebKit2/Shared/qt/QtNetworkRequestData.h

    r132361 r141632  
    4646    QtNetworkRequestData(const QNetworkRequest&, QNetworkReply*);
    4747    void encode(CoreIPC::ArgumentEncoder&) const;
    48     static bool decode(CoreIPC::ArgumentDecoder*, QtNetworkRequestData&);
     48    static bool decode(CoreIPC::ArgumentDecoder&, QtNetworkRequestData&);
    4949
    5050    String m_scheme;
  • trunk/Source/WebKit2/Shared/qt/WebCoreArgumentCodersQt.cpp

    r133075 r141632  
    3939}
    4040
    41 bool ArgumentCoder<ResourceRequest>::decodePlatformData(ArgumentDecoder* decoder, ResourceRequest& resourceRequest)
     41bool ArgumentCoder<ResourceRequest>::decodePlatformData(ArgumentDecoder& decoder, ResourceRequest& resourceRequest)
    4242{
    4343    return true;
     
    4949}
    5050
    51 bool ArgumentCoder<ResourceResponse>::decodePlatformData(ArgumentDecoder* decoder, ResourceResponse& resourceResponse)
     51bool ArgumentCoder<ResourceResponse>::decodePlatformData(ArgumentDecoder& decoder, ResourceResponse& resourceResponse)
    5252{
    5353    return true;
     
    5959}
    6060
    61 bool ArgumentCoder<ResourceError>::decodePlatformData(ArgumentDecoder* decoder, ResourceError& resourceError)
     61bool ArgumentCoder<ResourceError>::decodePlatformData(ArgumentDecoder& decoder, ResourceError& resourceError)
    6262{
    6363    return true;
Note: See TracChangeset for help on using the changeset viewer.