Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1248)

Issue 10389107: Implement GL_EXT_occlusion_query_boolean on OSX (Closed)

Created:
8 years, 7 months ago by greggman
Modified:
6 years, 11 months ago
Reviewers:
Zhenyao Mo, Nico
CC:
chromium-reviews, apatrick_chromium
Visibility:
Public.

Description

Implement GL_EXT_occlusion_query_boolean on OSX Stupid me, I assumed GL_ARB_occlusion_query2 was available everywhere but it's not. So, if GL_ARB_occlusion_query2 is not available fallback to GL_ARB_occlusion_query TEST=unit tests BUG=126592 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=136936

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+158 lines, -27 lines) Patch
M gpu/command_buffer/service/feature_info.h View 2 chunks +3 lines, -1 line 0 comments Download
M gpu/command_buffer/service/feature_info.cc View 1 chunk +8 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/feature_info_unittest.cc View 2 chunks +45 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 chunk +1 line, -2 lines 0 comments Download
M gpu/command_buffer/service/query_manager.h View 4 chunks +9 lines, -1 line 0 comments Download
M gpu/command_buffer/service/query_manager.cc View 4 chunks +34 lines, -13 lines 3 comments Download
M gpu/command_buffer/service/query_manager_unittest.cc View 8 chunks +53 lines, -8 lines 0 comments Download
M gpu/command_buffer/tests/occlusion_query_unittests.cc View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
greggman
Hi Mo, Here's yet another.
8 years, 7 months ago (2012-05-12 00:25:19 UTC) #1
Zhenyao Mo
On 2012/05/12 00:25:19, greggman wrote: > Hi Mo, Here's yet another. LGTM
8 years, 7 months ago (2012-05-14 17:08:24 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gman@chromium.org/10389107/1
8 years, 7 months ago (2012-05-14 17:19:27 UTC) #3
commit-bot: I haz the power
Change committed as 136936
8 years, 7 months ago (2012-05-14 19:24:16 UTC) #4
Nico
https://chromiumcodereview.appspot.com/10389107/diff/1/gpu/command_buffer/service/query_manager.cc File gpu/command_buffer/service/query_manager.cc (right): https://chromiumcodereview.appspot.com/10389107/diff/1/gpu/command_buffer/service/query_manager.cc#newcode70 gpu/command_buffer/service/query_manager.cc:70: return MarkAsCompleted(result != 0); Why this change? Should MarkAsCompleted() ...
6 years, 11 months ago (2014-01-08 04:17:08 UTC) #5
Zhenyao Mo
https://chromiumcodereview.appspot.com/10389107/diff/1/gpu/command_buffer/service/query_manager.cc File gpu/command_buffer/service/query_manager.cc (right): https://chromiumcodereview.appspot.com/10389107/diff/1/gpu/command_buffer/service/query_manager.cc#newcode70 gpu/command_buffer/service/query_manager.cc:70: return MarkAsCompleted(result != 0); On 2014/01/08 04:17:09, Nico wrote: ...
6 years, 11 months ago (2014-01-08 18:55:11 UTC) #6
Nico
On Wed, Jan 8, 2014 at 10:55 AM, <zmo@chromium.org> wrote: > > https://chromiumcodereview.appspot.com/10389107/diff/1/ > gpu/command_buffer/service/query_manager.cc ...
6 years, 11 months ago (2014-01-08 18:55:57 UTC) #7
Zhenyao Mo
6 years, 11 months ago (2014-01-08 19:08:17 UTC) #8
Message was sent while issue was closed.
https://chromiumcodereview.appspot.com/10389107/diff/1/gpu/command_buffer/ser...
File gpu/command_buffer/service/query_manager.cc (right):

https://chromiumcodereview.appspot.com/10389107/diff/1/gpu/command_buffer/ser...
gpu/command_buffer/service/query_manager.cc:70: return MarkAsCompleted(result !=
0);
On 2014/01/08 18:55:11, Zhenyao Mo wrote:
> On 2014/01/08 04:17:09, Nico wrote:
> > Why this change? Should MarkAsCompleted() get a bool parameter instead?
> 
> This should actually be MarkAsCompleted(result == 0 ? 0 : 1)

If I understand this correctly (without going through all the details), in
general the query returns the number of pixels that a draw touched, but for this
extension GL_EXT_occlusion_query_boolean emulation, we only want true or false.

Powered by Google App Engine
This is Rietveld 408576698