Changeset 140746 in webkit


Ignore:
Timestamp:
Jan 24, 2013 4:11:26 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Coordinated Graphics: remove SurfaceUpdateInfo::encode/decode
https://bugs.webkit.org/show_bug.cgi?id=107794

Patch by Jae Hyun Park <jae.park@company100.net> on 2013-01-24
Reviewed by Anders Carlsson.

We want to remove the dependency on CoreIPC from SurfaceUpdateInfo
because we will extract Coordinated Graphics from WK2. Since
SurfaceUpdateInfo is only used in Coordinated Graphics, this patch
moves it to Shared/CoordinatedGraphics, and removes CoreIPC
dependency.

No new tests, no change in behavior.

  • CMakeLists.txt:
  • Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:

(CoreIPC::::encode):
(CoreIPC):
(CoreIPC::::decode):

  • Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.h:

(WebKit):

  • Shared/CoordinatedGraphics/SurfaceUpdateInfo.h: Renamed from Source/WebKit2/Shared/SurfaceUpdateInfo.h.

(WebKit):
(SurfaceUpdateInfo):
(WebKit::SurfaceUpdateInfo::SurfaceUpdateInfo):

  • Shared/SurfaceUpdateInfo.cpp: Removed.
  • Target.pri:
Location:
trunk/Source/WebKit2
Files:
1 deleted
5 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/CMakeLists.txt

    r140601 r140746  
    162162    Shared/ShareableBitmap.cpp
    163163    Shared/StatisticsData.cpp
    164     Shared/SurfaceUpdateInfo.cpp
    165164    Shared/UpdateInfo.cpp
    166165    Shared/VisitedLinkTable.cpp
  • trunk/Source/WebKit2/ChangeLog

    r140743 r140746  
     12013-01-24  Jae Hyun Park  <jae.park@company100.net>
     2
     3        Coordinated Graphics: remove SurfaceUpdateInfo::encode/decode
     4        https://bugs.webkit.org/show_bug.cgi?id=107794
     5
     6        Reviewed by Anders Carlsson.
     7
     8        We want to remove the dependency on CoreIPC from SurfaceUpdateInfo
     9        because we will extract Coordinated Graphics from WK2. Since
     10        SurfaceUpdateInfo is only used in Coordinated Graphics, this patch
     11        moves it to Shared/CoordinatedGraphics, and removes CoreIPC
     12        dependency.
     13
     14        No new tests, no change in behavior.
     15
     16        * CMakeLists.txt:
     17        * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:
     18        (CoreIPC::::encode):
     19        (CoreIPC):
     20        (CoreIPC::::decode):
     21        * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.h:
     22        (WebKit):
     23        * Shared/CoordinatedGraphics/SurfaceUpdateInfo.h: Renamed from Source/WebKit2/Shared/SurfaceUpdateInfo.h.
     24        (WebKit):
     25        (SurfaceUpdateInfo):
     26        (WebKit::SurfaceUpdateInfo::SurfaceUpdateInfo):
     27        * Shared/SurfaceUpdateInfo.cpp: Removed.
     28        * Target.pri:
     29
    1302013-01-24  Anders Carlsson  <andersca@apple.com>
    231
  • trunk/Source/WebKit2/Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp

    r140601 r140746  
    3131#if USE(COORDINATED_GRAPHICS)
    3232#include "CoordinatedLayerInfo.h"
     33#include "SurfaceUpdateInfo.h"
    3334#include "WebCoreArgumentCoders.h"
    3435#include <WebCore/Animation.h>
     
    823824}
    824825
     826void ArgumentCoder<SurfaceUpdateInfo>::encode(ArgumentEncoder& encoder, const SurfaceUpdateInfo& surfaceUpdateInfo)
     827{
     828    SimpleArgumentCoder<SurfaceUpdateInfo>::encode(encoder, surfaceUpdateInfo);
     829}
     830
     831bool ArgumentCoder<SurfaceUpdateInfo>::decode(ArgumentDecoder* decoder, SurfaceUpdateInfo& surfaceUpdateInfo)
     832{
     833    return SimpleArgumentCoder<SurfaceUpdateInfo>::decode(decoder, surfaceUpdateInfo);
     834}
     835
    825836} // namespace CoreIPC
    826837
  • trunk/Source/WebKit2/Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.h

    r140601 r140746  
    5555namespace WebKit {
    5656struct CoordinatedLayerInfo;
     57class SurfaceUpdateInfo;
    5758}
    5859
     
    115116};
    116117
     118template<> struct ArgumentCoder<WebKit::SurfaceUpdateInfo> {
     119    static void encode(ArgumentEncoder&, const WebKit::SurfaceUpdateInfo&);
     120    static bool decode(ArgumentDecoder*, WebKit::SurfaceUpdateInfo&);
     121};
     122
    117123} // namespace CoreIPC
    118124
  • trunk/Source/WebKit2/Shared/CoordinatedGraphics/SurfaceUpdateInfo.h

    r140745 r140746  
    2121#define SurfaceUpdateInfo_h
    2222
     23#if USE(COORDINATED_GRAPHICS)
     24
    2325#include <WebCore/IntRect.h>
    2426#include <wtf/Noncopyable.h>
    25 
    26 namespace CoreIPC {
    27 class ArgumentDecoder;
    28 class ArgumentEncoder;
    29 }
    3027
    3128namespace WebKit {
     
    3633public:
    3734    SurfaceUpdateInfo() { }
    38 
    39     void encode(CoreIPC::ArgumentEncoder&) const;
    40     static bool decode(CoreIPC::ArgumentDecoder*, SurfaceUpdateInfo&);
    4135
    4236    // The rect to be updated.
     
    5549} // namespace WebKit
    5650
    57 #endif // UpdateInfo_h
     51#endif // USE(COORDINATED_GRAPHICS)
     52
     53#endif // SurfaceUpdateInfo_h
  • trunk/Source/WebKit2/Target.pri

    r140720 r140746  
    100100    Shared/StatisticsData.h \
    101101    Shared/StringPairVector.h \
    102     Shared/SurfaceUpdateInfo.h \
    103102    Shared/UpdateInfo.h \
    104103    Shared/UserMessageCoders.h \
     
    138137    Shared/CoordinatedGraphics/CoordinatedLayerInfo.h \
    139138    Shared/CoordinatedGraphics/CoordinatedSurface.h \
     139    Shared/CoordinatedGraphics/SurfaceUpdateInfo.h \
    140140    Shared/CoordinatedGraphics/WebCoordinatedSurface.h \
    141141    Shared/CoordinatedGraphics/WebCustomFilterProgram.h \
     
    475475    Shared/SessionState.cpp \
    476476    Shared/StatisticsData.cpp \
    477     Shared/SurfaceUpdateInfo.cpp \
    478477    Shared/UpdateInfo.cpp \
    479478    Shared/VisitedLinkTable.cpp \
Note: See TracChangeset for help on using the changeset viewer.