Bug 44115 - [CHROMIUM] Eliminate a memcpy() from the canvas.drawImage(canvas, ...) path.
Summary: [CHROMIUM] Eliminate a memcpy() from the canvas.drawImage(canvas, ...) path.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows 7
: P3 Normal
Assignee: Stephen White
URL:
Keywords:
Depends on: 44123
Blocks:
  Show dependency treegraph
 
Reported: 2010-08-17 09:58 PDT by Stephen White
Modified: 2010-08-18 11:44 PDT (History)
6 users (show)

See Also:


Attachments
Patch (7.61 KB, patch)
2010-08-17 10:03 PDT, Stephen White
no flags Details | Formatted Diff | Diff
Patch (7.63 KB, patch)
2010-08-17 13:54 PDT, Stephen White
fishd: review+
fishd: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stephen White 2010-08-17 09:58:20 PDT
[CHROMIUM] Eliminate a memcpy() from the canvas.drawImage(canvas, ...) path.
Comment 1 Stephen White 2010-08-17 10:03:22 PDT
Created attachment 64602 [details]
Patch
Comment 2 Darin Fisher (:fishd, Google) 2010-08-17 10:59:01 PDT
Comment on attachment 64602 [details]
Patch

WebCore/platform/graphics/skia/BitmapImageSingleFrameSkia.h:82
 +      BitmapImageSingleFrameSkia(const SkBitmap&);
should this be marked 'explicit' just in case?

WebCore/platform/graphics/skia/NativeImageSkia.h:49
 +      NativeImageSkia(const SkBitmap&);
nit: mark this 'explicit'?

R=me
Comment 3 Stephen White 2010-08-17 11:03:40 PDT
(In reply to comment #2)
> (From update of attachment 64602 [details])
> WebCore/platform/graphics/skia/BitmapImageSingleFrameSkia.h:82
>  +      BitmapImageSingleFrameSkia(const SkBitmap&);
> should this be marked 'explicit' just in case?
> 
> WebCore/platform/graphics/skia/NativeImageSkia.h:49
>  +      NativeImageSkia(const SkBitmap&);
> nit: mark this 'explicit'?

Good idea.  Will do before landing.

> 
> R=me
Comment 4 Stephen White 2010-08-17 11:55:58 PDT
Committed r65528: <http://trac.webkit.org/changeset/65528>
Comment 5 Stephen White 2010-08-17 13:24:38 PDT
Rolled out in https://bugs.webkit.org/show_bug.cgi?id=44123 due to test failures; reopening.
Comment 6 Stephen White 2010-08-17 13:54:24 PDT
Created attachment 64627 [details]
Patch
Comment 7 Stephen White 2010-08-17 14:01:40 PDT
Should fix the test failures (they go from 80 -> 40 on my Win7 box, which is about normal these days :| ).
Comment 8 Darin Fisher (:fishd, Google) 2010-08-18 10:38:31 PDT
Comment on attachment 64627 [details]
Patch

R=me, but same comment about adding the 'explicit' keyword.
Comment 9 Stephen White 2010-08-18 11:11:45 PDT
Committed r65617: <http://trac.webkit.org/changeset/65617>
Comment 10 WebKit Review Bot 2010-08-18 11:44:44 PDT
http://trac.webkit.org/changeset/65617 might have broken GTK Linux 32-bit Release