Changeset 112193 in webkit


Ignore:
Timestamp:
Mar 26, 2012 7:13:08 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[Skia] Remove use of deprecated Skia constant and struct field names
https://bugs.webkit.org/show_bug.cgi?id=81034

Patch by Brian Salomon <bsalomon@google.com> on 2012-03-26
Reviewed by James Robinson.

No behavior change, so no tests. The modified code is executed by many existing tests.

  • platform/graphics/chromium/FrameBufferSkPictureCanvasLayerTextureUpdater.cpp:

(WebCore::createAcceleratedCanvas):

  • platform/graphics/chromium/cc/CCRenderSurfaceFilters.cpp:

(WebCore::CCRenderSurfaceFilters::apply):

  • platform/graphics/skia/ImageBufferSkia.cpp:

(WebCore::createAcceleratedCanvas):

Location:
trunk/Source/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r112191 r112193  
     12012-03-26  Brian Salomon  <bsalomon@google.com>
     2
     3        [Skia] Remove use of deprecated Skia constant and struct field names
     4        https://bugs.webkit.org/show_bug.cgi?id=81034
     5
     6        Reviewed by James Robinson.
     7
     8        No behavior change, so no tests. The modified code is executed by many existing tests.
     9
     10        * platform/graphics/chromium/FrameBufferSkPictureCanvasLayerTextureUpdater.cpp:
     11        (WebCore::createAcceleratedCanvas):
     12        * platform/graphics/chromium/cc/CCRenderSurfaceFilters.cpp:
     13        (WebCore::CCRenderSurfaceFilters::apply):
     14        * platform/graphics/skia/ImageBufferSkia.cpp:
     15        (WebCore::createAcceleratedCanvas):
     16
    1172012-03-26  Nat Duca  <nduca@chromium.org>
    218
  • trunk/Source/WebCore/platform/graphics/chromium/FrameBufferSkPictureCanvasLayerTextureUpdater.cpp

    r110267 r112193  
    5050    textureDesc.fWidth = canvasSize.width();
    5151    textureDesc.fHeight = canvasSize.height();
    52     textureDesc.fConfig = kRGBA_8888_GrPixelConfig;
     52    textureDesc.fConfig = kSkia8888_PM_GrPixelConfig;
    5353    textureDesc.fTextureHandle = texture->textureId();
    5454    SkAutoTUnref<GrTexture> target(grContext->createPlatformTexture(textureDesc));
  • trunk/Source/WebCore/platform/graphics/chromium/cc/CCRenderSurfaceFilters.cpp

    r111126 r112193  
    204204        desc.fWidth = size.width();
    205205        desc.fHeight = size.height();
    206         desc.fConfig = kRGBA_8888_GrPixelConfig;
     206        desc.fConfig = kSkia8888_PM_GrPixelConfig;
    207207        // FIXME: could we use approximate match, and fix texcoords on draw
    208208        dest = gr->lockScratchTexture(desc, GrContext::kExact_ScratchTexMatch);
  • trunk/Source/WebCore/platform/graphics/skia/ImageBufferSkia.cpp

    r110483 r112193  
    9595    GrTextureDesc desc;
    9696    desc.fFlags = kRenderTarget_GrTextureFlagBit;
    97     desc.fAALevel = kNone_GrAALevel;
     97    desc.fSampleCnt = 0;
    9898    desc.fWidth = size.width();
    9999    desc.fHeight = size.height();
    100     desc.fConfig = kRGBA_8888_GrPixelConfig;
     100    desc.fConfig = kSkia8888_PM_GrPixelConfig;
    101101    SkAutoTUnref<GrTexture> texture(gr->createUncachedTexture(desc, 0, 0));
    102102    if (!texture.get())
Note: See TracChangeset for help on using the changeset viewer.