WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
104553
[EFL][WebGL] Minor Refactor in GraphicsContext3DEfl.
https://bugs.webkit.org/show_bug.cgi?id=104553
Summary
[EFL][WebGL] Minor Refactor in GraphicsContext3DEfl.
Kalyan
Reported
2012-12-10 06:46:36 PST
Remove unused code in PlatformSurface. Share FBO between canvas and surface.
Attachments
patch
(12.77 KB, patch)
2012-12-10 08:57 PST
,
Kalyan
no flags
Details
Formatted Diff
Diff
patch
(13.22 KB, patch)
2012-12-10 09:50 PST
,
Kalyan
no flags
Details
Formatted Diff
Diff
proposedpatch
(13.21 KB, patch)
2012-12-10 10:05 PST
,
Kalyan
kenneth
: review-
kenneth
: commit-queue-
Details
Formatted Diff
Diff
patchv3
(14.37 KB, patch)
2012-12-10 13:53 PST
,
Kalyan
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Kalyan
Comment 1
2012-12-10 08:57:56 PST
Created
attachment 178564
[details]
patch
Kalyan
Comment 2
2012-12-10 09:50:35 PST
Created
attachment 178574
[details]
patch
WebKit Review Bot
Comment 3
2012-12-10 09:53:51 PST
Attachment 178574
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1 Source/WebCore/platform/graphics/efl/GraphicsContext3DPrivate.cpp:150: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Total errors found: 1 in 10 files If any of these errors are false positives, please file a bug against check-webkit-style.
Kenneth Rohde Christiansen
Comment 4
2012-12-10 10:00:49 PST
Comment on
attachment 178574
[details]
patch View in context:
https://bugs.webkit.org/attachment.cgi?id=178574&action=review
> Source/WebCore/ChangeLog:9 > + > + With this patch we use the same FBO for canvas and backbuffer of offscreen surface. > + Also, removes some unused code.
You should explain why that is a good things etc. What it really means
> Source/WebCore/ChangeLog:23 > + * platform/graphics/efl/GraphicsContext3DEfl.cpp: > + (WebCore::GraphicsContext3D::createGraphicsSurfaces): > + * platform/graphics/efl/GraphicsContext3DPrivate.cpp: > + (GraphicsContext3DPrivate::canvasResized): > + (GraphicsContext3DPrivate::copyToGraphicsSurface): > + * platform/graphics/efl/GraphicsContext3DPrivate.h: > + (GraphicsContext3DPrivate): > + * platform/graphics/opengl/GLDefs.h: > + * platform/graphics/opengl/GLPlatformContext.h: > + * platform/graphics/opengl/GLPlatformSurface.h: > + * platform/graphics/surfaces/glx/GLXSurface.h:
Please add more info about your changes here. Especially when you refactor
> Source/WebCore/platform/graphics/efl/GraphicsContext3DEfl.cpp:236 > + m_private->canvasResized();
didResizeCanvas() seems more consistent with other webcore code
> Source/WebCore/platform/graphics/efl/GraphicsContext3DPrivate.cpp:146 > + // We should copy the full buffer, and not respect the > + // current scissor bounds.
keep on one line
> Source/WebCore/platform/graphics/efl/GraphicsContext3DPrivate.cpp:147 > + // FIXME::It would be more efficient to track the state of the scissor test.
not two ::, just "FIXME: "
>> Source/WebCore/platform/graphics/efl/GraphicsContext3DPrivate.cpp:150 >> + // m_context->disable(GraphicsContext3D::SCISSOR_TEST); > > Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
Dont ever commit outcommented code!
> Source/WebCore/platform/graphics/opengl/GLPlatformSurface.h:56 > + // Creates FBO used by the surface. > + // Buffers can be bound to this FBO.
one line!
> Source/WebCore/platform/graphics/opengl/GLPlatformSurface.h:57 > + void initialize(GLuint *frameBufferId);
* placement!
> Source/WebCore/platform/graphics/opengl/GLPlatformSurface.h:70 > - // a)Blits texture contents to back buffer. > + // a)Blits back buffer contents to front buffer. > // b)Calls Swap Buffers. > - // c)Sets current FBO as bindFboId and binds texture to bindTexture. > - virtual void updateContents(const uint32_t texture, const IntRect& sourceRect, const GLuint bindFboId, const uint32_t bindTexture); > + // c)Sets current FBO as bindFboId.
space after )
Kalyan
Comment 5
2012-12-10 10:05:48 PST
Created
attachment 178581
[details]
proposedpatch patch for review
Kenneth Rohde Christiansen
Comment 6
2012-12-10 10:07:29 PST
Comment on
attachment 178581
[details]
proposedpatch r- given my other comments
Kalyan
Comment 7
2012-12-10 13:53:00 PST
Created
attachment 178628
[details]
patchv3
Kalyan
Comment 8
2012-12-10 13:55:21 PST
(In reply to
comment #4
)
> (From update of
attachment 178574
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=178574&action=review
> > > Source/WebCore/ChangeLog:9 > > + > > + With this patch we use the same FBO for canvas and backbuffer of offscreen surface. > > + Also, removes some unused code. > > You should explain why that is a good things etc. What it really means > > > Source/WebCore/ChangeLog:23 > > + * platform/graphics/efl/GraphicsContext3DEfl.cpp: > > + (WebCore::GraphicsContext3D::createGraphicsSurfaces): > > + * platform/graphics/efl/GraphicsContext3DPrivate.cpp: > > + (GraphicsContext3DPrivate::canvasResized): > > + (GraphicsContext3DPrivate::copyToGraphicsSurface): > > + * platform/graphics/efl/GraphicsContext3DPrivate.h: > > + (GraphicsContext3DPrivate): > > + * platform/graphics/opengl/GLDefs.h: > > + * platform/graphics/opengl/GLPlatformContext.h: > > + * platform/graphics/opengl/GLPlatformSurface.h: > > + * platform/graphics/surfaces/glx/GLXSurface.h: > > Please add more info about your changes here. Especially when you refactor > > > Source/WebCore/platform/graphics/efl/GraphicsContext3DEfl.cpp:236 > > + m_private->canvasResized(); > > didResizeCanvas() seems more consistent with other webcore code > > > Source/WebCore/platform/graphics/efl/GraphicsContext3DPrivate.cpp:146 > > + // We should copy the full buffer, and not respect the > > + // current scissor bounds. > > keep on one line > > > Source/WebCore/platform/graphics/efl/GraphicsContext3DPrivate.cpp:147 > > + // FIXME::It would be more efficient to track the state of the scissor test. > > not two ::, just "FIXME: " > > >> Source/WebCore/platform/graphics/efl/GraphicsContext3DPrivate.cpp:150 > >> + // m_context->disable(GraphicsContext3D::SCISSOR_TEST); > > > > Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] > > Dont ever commit outcommented code! > > > Source/WebCore/platform/graphics/opengl/GLPlatformSurface.h:56 > > + // Creates FBO used by the surface. > > + // Buffers can be bound to this FBO. > > one line! > > > Source/WebCore/platform/graphics/opengl/GLPlatformSurface.h:57 > > + void initialize(GLuint *frameBufferId); > > * placement! > > > Source/WebCore/platform/graphics/opengl/GLPlatformSurface.h:70 > > - // a)Blits texture contents to back buffer. > > + // a)Blits back buffer contents to front buffer. > > // b)Calls Swap Buffers. > > - // c)Sets current FBO as bindFboId and binds texture to bindTexture. > > - virtual void updateContents(const uint32_t texture, const IntRect& sourceRect, const GLuint bindFboId, const uint32_t bindTexture); > > + // c)Sets current FBO as bindFboId. > > space after )
done.
WebKit Review Bot
Comment 9
2012-12-10 15:02:19 PST
Comment on
attachment 178628
[details]
patchv3 Clearing flags on attachment: 178628 Committed
r137211
: <
http://trac.webkit.org/changeset/137211
>
WebKit Review Bot
Comment 10
2012-12-10 15:02:24 PST
All reviewed patches have been landed. Closing bug.
Kenneth Rohde Christiansen
Comment 11
2012-12-10 16:17:30 PST
This seems to break all of webgl for me!
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug