Bug 92276 - fix test in beginLayerClippedToImage to check for immutability if we're going to do a shallow-copy
Summary: fix test in beginLayerClippedToImage to check for immutability if we're going...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Mike Reed
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-25 12:16 PDT by Mike Reed
Modified: 2012-07-25 14:47 PDT (History)
2 users (show)

See Also:


Attachments
Patch (2.51 KB, patch)
2012-07-25 12:19 PDT, Mike Reed
no flags Details | Formatted Diff | Diff
Patch (3.01 KB, patch)
2012-07-25 12:38 PDT, Mike Reed
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Reed 2012-07-25 12:16:56 PDT
fix test in beginLayerClippedToImage to check for immutability if we're going to do a shallow-copy
Comment 1 Mike Reed 2012-07-25 12:19:51 PDT
Created attachment 154414 [details]
Patch
Comment 2 Stephen White 2012-07-25 12:30:57 PDT
Comment on attachment 154414 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=154414&action=review

Please clean up the ChangeLog.

> Source/WebCore/ChangeLog:8
> +        Additional information of the change such as approach, rationale. Please add per-function descriptions below (OOPS!).

You'll need to delete this line, or replace it with what it asks for.

> Source/WebCore/platform/graphics/skia/PlatformContextSkia.cpp:292
> +    else {
> +        // We need to make a deep-copy of the pixels themselves, so they don't
> +        // change on us between now and when we want to apply them in restore()
> +        bitmap->copyTo(&m_state->m_imageBufferClip, SkBitmap::kARGB_8888_Config);

If we need this to work on the GPU at some point, we should probably try a deepCopyTo() first.
Comment 3 Mike Reed 2012-07-25 12:38:13 PDT
Created attachment 154417 [details]
Patch
Comment 4 Mike Reed 2012-07-25 12:38:32 PDT
update CL comments
Comment 5 Stephen White 2012-07-25 12:39:38 PDT
Comment on attachment 154417 [details]
Patch

OK, thanks for the cleanup.  r=me
Comment 6 WebKit Review Bot 2012-07-25 14:47:42 PDT
Comment on attachment 154417 [details]
Patch

Clearing flags on attachment: 154417

Committed r123665: <http://trac.webkit.org/changeset/123665>
Comment 7 WebKit Review Bot 2012-07-25 14:47:45 PDT
All reviewed patches have been landed.  Closing bug.