Bug 45503 - [chromium] Clear only the uploaded portion of the software backing store when in mixed mode
Summary: [chromium] Clear only the uploaded portion of the software backing store when...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other OS X 10.5
: P2 Normal
Assignee: James Robinson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-09 17:05 PDT by James Robinson
Modified: 2010-09-09 20:10 PDT (History)
6 users (show)

See Also:


Attachments
Patch (4.57 KB, patch)
2010-09-09 17:10 PDT, James Robinson
kbr: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description James Robinson 2010-09-09 17:05:56 PDT
[chromium] Clear only the uploaded portion of the software backing store when in mixed mode
Comment 1 James Robinson 2010-09-09 17:10:13 PDT
Created attachment 67121 [details]
Patch
Comment 2 Vincent Scheib 2010-09-09 17:30:42 PDT
Looks good to me.
Comment 3 Kenneth Russell 2010-09-09 18:06:40 PDT
Comment on attachment 67121 [details]
Patch

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

Looks good overall with a couple of minor issues that can be fixed upon landing.

> WebCore/platform/graphics/gpu/Texture.cpp:129
> +        for (int y = 0; y < height; y++) {
Apparently WebKit style prefers preincrement (++y rather than y++). Note that changing this wouldn't change the functionality of the loop.

> WebCore/platform/graphics/skia/PlatformContextSkia.cpp:734
>              // Start compositing into the empty canvas.
This comment should probably change.

> WebCore/platform/graphics/skia/PlatformContextSkia.cpp:818
> +    SkRect bounds = {m_softwareDirtyRect.x(), m_softwareDirtyRect.y(), m_softwareDirtyRect.right(), m_softwareDirtyRect.bottom()};
There's a casting operator SkRect() on FloatRect when compiled against Skia.
Comment 4 James Robinson 2010-09-09 19:45:15 PDT
Committed r67152: <http://trac.webkit.org/changeset/67152>
Comment 5 WebKit Review Bot 2010-09-09 20:10:29 PDT
http://trac.webkit.org/changeset/67152 might have broken Chromium Mac Release
The following changes are on the blame list:
http://trac.webkit.org/changeset/67152
http://trac.webkit.org/changeset/67149
http://trac.webkit.org/changeset/67150
http://trac.webkit.org/changeset/67151