RESOLVED FIXED 111759
[EFL][WebGL] Implement a common GraphicsSurface Implementation.
https://bugs.webkit.org/show_bug.cgi?id=111759
Summary [EFL][WebGL] Implement a common GraphicsSurface Implementation.
Kalyan
Reported 2013-03-07 11:48:44 PST
Implement common GraphicsSurface implementation which can be used by both GLX and GLES. This should handle the core logic and leave any platform specific bits to be handled separately.
Attachments
patch (52.61 KB, patch)
2013-03-09 19:08 PST, Kalyan
no flags
patchv2 (52.77 KB, patch)
2013-03-09 20:30 PST, Kalyan
no flags
patchv3 (52.95 KB, patch)
2013-03-18 08:40 PDT, Kalyan
no flags
Kalyan
Comment 1 2013-03-09 19:08:36 PST
Kalyan
Comment 2 2013-03-09 20:30:39 PST
Kenneth Rohde Christiansen
Comment 3 2013-03-18 06:23:17 PDT
Comment on attachment 192368 [details] patchv2 View in context: https://bugs.webkit.org/attachment.cgi?id=192368&action=review > Source/WebCore/ChangeLog:25 > + * platform/graphics/efl/GraphicsContext3DPrivate.h: > + (GraphicsContext3DPrivate): > + TransportSurface related code is moved to GraphicsSurfaceCommon. I personally prefer a newline before the comment... makes it easier to read on bugzilla > Source/WebCore/ChangeLog:57 > + (WebCore::GLTransportSurfaceClient::texture): > + (WebCore::GLTransportSurfaceClient::hasAlpha): > + Moved TransportSurface to EFL folder. Added a base class > + for TransportSurfaceClient. Reasoning is always welcome! > Source/WebCore/platform/graphics/efl/GraphicsContext3DPrivate.cpp:196 > + // Dont release current graphics surface until we have Don't or Do not > Source/WebCore/platform/graphics/efl/GraphicsContext3DPrivate.cpp:198 > + // prepared surface with requested size. This is to > + // avoid flashing during resize. Lines are allowed to be longer, like 80-100 chars depending on current indent > Source/WebCore/platform/graphics/efl/GraphicsContext3DPrivate.cpp:207 > + m_targetRect = IntRect(0, 0, m_size.width(), m_size.height()); Why not IntRect(IntPoint(), m_size) > Source/WebCore/platform/graphics/efl/GraphicsContext3DPrivate.cpp:211 > + > + if (m_size.isEmpty()) { > + > + if (m_graphicsSurface) { unneeded newline > Source/WebCore/platform/graphics/efl/GraphicsContext3DPrivate.h:63 > + enum PendingOpeartion { Spelling! OPERATION > Source/WebCore/platform/graphics/efl/GraphicsContext3DPrivate.h:64 > + Default = 0x00, // No Pending Operation. None = 0x00 > Source/WebCore/platform/graphics/surfaces/efl/GLTransportSurface.cpp:66 > + m_rect = IntRect(0, 0, size.width(), size.height()); IntRect(IntPoint(), size) > Source/WebCore/platform/graphics/surfaces/efl/GLTransportSurface.h:43 > + // Creates a GL surface whose results can be transported > + // to the UI process for display. > + static PassOwnPtr<GLTransportSurface> createTransportSurface(const IntSize&, SurfaceAttributes = GLPlatformSurface::Default); The third line is long, so no need to wrap that comment
Kalyan
Comment 4 2013-03-18 08:40:51 PDT
Kalyan
Comment 5 2013-03-18 08:43:13 PDT
(In reply to comment #3) > (From update of attachment 192368 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=192368&action=review > > Source/WebCore/platform/graphics/surfaces/efl/GLTransportSurface.h:43 > > + // Creates a GL surface whose results can be transported > > + // to the UI process for display. > > + static PassOwnPtr<GLTransportSurface> createTransportSurface(const IntSize&, SurfaceAttributes = GLPlatformSurface::Default); > > The third line is long, so no need to wrap that comment Done.
Kenneth Rohde Christiansen
Comment 6 2013-03-21 05:49:45 PDT
Are you not a committer? then you can set cq+ and you should add yourself to committers.py
Kalyan
Comment 7 2013-03-21 05:58:15 PDT
(In reply to comment #6) > Are you not a committer? then you can set cq+ and you should add yourself to committers.py Not yet. Still waiting to finish some of the formalities.
WebKit Review Bot
Comment 8 2013-03-21 06:18:27 PDT
Comment on attachment 193571 [details] patchv3 Clearing flags on attachment: 193571 Committed r146458: <http://trac.webkit.org/changeset/146458>
WebKit Review Bot
Comment 9 2013-03-21 06:18:33 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.