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

Issue 175093004: ui: Allow individual test suites to opt-out of the TestCompositor. (Closed)

Created:
6 years, 10 months ago by danakj
Modified:
6 years, 10 months ago
CC:
chromium-reviews, Ian Vollick, sievers+watch_chromium.org, jbauman+watch_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org
Visibility:
Public.

Description

ui: Allow individual test suites to opt-out of the TestCompositor. This adds a temporary bool to GLSurface::InitializeOneOffForTests() allowing a test suite to opt-in to NullDraw bindings. When a test suite as opted in, the InitializeContextFactoryForTests() method can see, and will not use the TestContextFactory, instead using the InProcessContextFactory. Once all test suites are optign into NullDraw bindings. The bool and query method for HasInitializedNullDrawGLBindings() will be removed. R=kbr@chromium.org, sievers@chromium.org BUG=270918 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=252647

Patch Set 1 #

Patch Set 2 : nulldrawdisable: #

Patch Set 3 : nulldrawdisable: #

Patch Set 4 : nulldrawdisable: #

Total comments: 8

Patch Set 5 : nulldrawdisable: #

Patch Set 6 : nulldrawdisable: ui:: #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -6 lines) Patch
M ui/compositor/test/context_factories_for_test.cc View 1 2 3 4 5 3 chunks +17 lines, -3 lines 0 comments Download
M ui/gl/gl_bindings.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M ui/gl/gl_gl_api_implementation.h View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/gl/gl_gl_api_implementation.cc View 1 2 2 chunks +9 lines, -0 lines 0 comments Download
M ui/gl/gl_implementation.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M ui/gl/gl_implementation.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M ui/gl/gl_surface.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M ui/gl/gl_surface.cc View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
danakj
Daniel, can you please have a look? This is a temporary state to let me ...
6 years, 10 months ago (2014-02-21 17:04:31 UTC) #1
danakj
oh, sievers isn't ui/gl/ owner surprisingly. +kbr for ui/gl/
6 years, 10 months ago (2014-02-21 18:45:00 UTC) #2
no sievers
https://codereview.chromium.org/175093004/diff/160002/ui/compositor/test/context_factories_for_test.cc File ui/compositor/test/context_factories_for_test.cc (right): https://codereview.chromium.org/175093004/diff/160002/ui/compositor/test/context_factories_for_test.cc#newcode18 ui/compositor/test/context_factories_for_test.cc:18: static gfx::DisableNullDrawGLBindings* g_disable_null_draw = NULL; nit: Shouldn't these statics ...
6 years, 10 months ago (2014-02-21 19:51:49 UTC) #3
danakj
https://codereview.chromium.org/175093004/diff/160002/ui/compositor/test/context_factories_for_test.cc File ui/compositor/test/context_factories_for_test.cc (right): https://codereview.chromium.org/175093004/diff/160002/ui/compositor/test/context_factories_for_test.cc#newcode18 ui/compositor/test/context_factories_for_test.cc:18: static gfx::DisableNullDrawGLBindings* g_disable_null_draw = NULL; On 2014/02/21 19:51:49, sievers ...
6 years, 10 months ago (2014-02-21 19:56:58 UTC) #4
Ken Russell (switch to Gerrit)
lgtm https://codereview.chromium.org/175093004/diff/160002/ui/gl/gl_surface.h File ui/gl/gl_surface.h (right): https://codereview.chromium.org/175093004/diff/160002/ui/gl/gl_surface.h#newcode78 ui/gl/gl_surface.h:78: static void InitializeOneOffForTests(bool disable_drawing = false); On 2014/02/21 ...
6 years, 10 months ago (2014-02-21 20:03:37 UTC) #5
no sievers
lgtm2
6 years, 10 months ago (2014-02-21 20:09:08 UTC) #6
danakj
https://codereview.chromium.org/175093004/diff/160002/ui/gl/gl_surface.h File ui/gl/gl_surface.h (right): https://codereview.chromium.org/175093004/diff/160002/ui/gl/gl_surface.h#newcode78 ui/gl/gl_surface.h:78: static void InitializeOneOffForTests(bool disable_drawing = false); On 2014/02/21 20:03:37, ...
6 years, 10 months ago (2014-02-21 20:20:53 UTC) #7
danakj
The CQ bit was checked by danakj@chromium.org
6 years, 10 months ago (2014-02-21 20:21:34 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/175093004/240010
6 years, 10 months ago (2014-02-21 20:21:45 UTC) #9
danakj
6 years, 10 months ago (2014-02-21 21:19:09 UTC) #10
Message was sent while issue was closed.
Committed patchset #6 manually as r252647 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698