DescriptionReduce cost of glBind* on contexts without bind_generates_resource.
Contexts without bind_generates_resource utilize StrictIdHandler.
Binding ungenerated Ids is an error on StrictIdHandler, but there
were still calls made to IdAllocator::MarkAsUsed, which has the
overhead of taking a lock and doing a std::map lookup.
- Changed to generate GL error on service side instead of DCHECK
on client side.
- StrictIdHandler::MarkAsUsedForBind becomes no-op.
- Merged lock functionality of ThreadSafeIdHandlerWrapper up into
the base handlers to reduce indirection and use finer grained
locking.
- Removed unused SharedIdHandler class.
BUG=244968
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=250681
Patch Set 1 #
Total comments: 8
Patch Set 2 : Fix nits. Restore DCHECK. #Patch Set 3 : Updated gpu_unittest to match new error semantics. #
Messages
Total messages: 10 (0 generated)
|