[Webkit-unassigned] [Bug 54330] [chromium] Cannot use multiple accelerated 2D canvas' in the same render process

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 24 13:14:11 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=54330


James Robinson <jamesr at chromium.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #86815|review?, commit-queue?      |review-
               Flag|                            |




--- Comment #9 from James Robinson <jamesr at chromium.org>  2011-03-24 13:14:11 PST ---
(From update of attachment 86815)
View in context: https://bugs.webkit.org/attachment.cgi?id=86815&action=review

Style still isn't quite right, and there are still two unanswered questions:
1.) Given that the lifetime of the GraphicsContext3D is >= the DrawingBuffer, do we need the refcounting on the GrContext here?
2.) Does this code assume that ganesh is the exclusive user of SharedGraphicsContext3D?  That's not really consistent with the intended design of SGC3D (after all it's supposed to be shared by multiple cooperative users).

> WebCore/platform/graphics/gpu/SharedGraphicsContext3D.cpp:54
> +// Limit the number of textures we hold in the bitmap->texture cache
> +static const int cMaxTextureCacheCount = 512;
> +// Limit the bytes allocated toward textures in the bitmap->texture cache
> +static const size_t cMaxTextureCacheBytes = 50 * 1024 * 1024;

missing trailing periods on the comments.

we don't use the "c" or any other prefix for static constants in WebKit.

> WebCore/platform/graphics/gpu/SharedGraphicsContext3D.h:143
> +    GrContext* getGrContext();

Accessors in WebKit do not use a 'get' prefix - this should be 'grContext()'.  See http://www.webkit.org/coding/coding-style.html.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list