Closed
Bug 717442
Opened 13 years ago
Closed 13 years ago
WebGL should shadow GL state so as to minimize state queries
Categories
(Core :: Graphics: CanvasWebGL, defect)
Core
Graphics: CanvasWebGL
Tracking
()
RESOLVED
FIXED
mozilla13
People
(Reporter: jgilbert, Assigned: jgilbert)
Details
Attachments
(1 file, 2 obsolete files)
4.36 KB,
patch
|
jgilbert
:
review+
|
Details | Diff | Splinter Review |
In most cases, GL state access should be trivial, but it's not guaranteed to be so, and will probably not be trivial on some drivers.
As such, we should shadow what state we commonly use so as to minimize extra queries.
Comment 1•13 years ago
|
||
We already do shadow some state, for the reason you mention.
What more do you think we should shadow?
Assignee | ||
Comment 2•13 years ago
|
||
I think the only pressing need is framebuffer bindings. I was trying to think if there would be a nice way to make shadowing more general.
Assignee | ||
Comment 3•13 years ago
|
||
This seems to work.
I'm not sure why my previous attempt didn't work.
Assignee | ||
Comment 4•13 years ago
|
||
Fixed a warning.
Attachment #595252 -
Attachment is obsolete: true
Attachment #595252 -
Flags: review?(bjacob)
Attachment #595267 -
Flags: review?(bjacob)
Comment 5•13 years ago
|
||
Comment on attachment 595267 [details] [diff] [review]
Shadow bound FBO ids.
Review of attachment 595267 [details] [diff] [review]:
-----------------------------------------------------------------
r=me provided the following is addressed:
::: gfx/gl/GLContext.h
@@ +856,5 @@
> +
> +
> +
> + GLuint mBoundDrawFBO;
> + GLuint mBoundReadFBO;
That should probably not be public.
Attachment #595267 -
Flags: review?(bjacob) → review+
Assignee | ||
Comment 6•13 years ago
|
||
Target Milestone: --- → mozilla13
Assignee | ||
Comment 7•13 years ago
|
||
Final patch, carrying r+ forward, and fixing the bug number on the patch. (Patch was pointing at bug 717422)
Attachment #595267 -
Attachment is obsolete: true
Attachment #595567 -
Flags: review+
Comment 8•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•