blob: 96f219ef435c35b95882f11a88188685bd1f657b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "gpu/command_buffer/tests/gl_manager.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace gpu {
class GLDynamicConfigTest : public testing::Test {
};
TEST_F(GLDynamicConfigTest, SwitchConfigurationInNonVirtualizedContextMode) {
// TODO(jinsukkim): Enable the test once crbug.com/527126 is handled.
#if 0
// Disable usage of virtualized GL context.
GLManager::SetEnableVirtualContext(false);
GLManager::Options options;
options.surface_format = gfx::GLSurface::SURFACE_RGB565;
GLManager gl_rgb_565;
gl_rgb_565.Initialize(options);
// The test is successful if the following command returns without assertion
// failure. Otherwise it would have stopped in GLManager while initializing
// the context and making it current.
GLManager gl_argb_8888;
gl_argb_8888.Initialize(GLManager::Options());
gl_rgb_565.Destroy();
gl_argb_8888.Destroy();
#endif
}
} // namespace gpu
|