Index: components/display_compositor/buffer_queue_unittest.cc |
diff --git a/components/display_compositor/buffer_queue_unittest.cc b/components/display_compositor/buffer_queue_unittest.cc |
index 78a01880435cbebfa2e23a05a609d6cde74ee889..e0da9f42c143a461a9836e0a5678ce473c544b65 100644 |
--- a/components/display_compositor/buffer_queue_unittest.cc |
+++ b/components/display_compositor/buffer_queue_unittest.cc |
@@ -122,7 +122,7 @@ class BufferQueueTest : public ::testing::Test { |
gpu_memory_buffer_manager_.reset(new StubGpuMemoryBufferManager); |
mock_output_surface_ = new MockBufferQueue(context_provider_->ContextGL(), |
gpu_memory_buffer_manager_.get(), |
- GL_TEXTURE_2D, GL_RGBA); |
+ GL_TEXTURE_2D, GL_RGB); |
output_surface_.reset(mock_output_surface_); |
output_surface_->Initialize(); |
} |
@@ -262,7 +262,7 @@ std::unique_ptr<BufferQueue> CreateBufferQueue( |
gpu::gles2::GLES2Interface* gl, |
gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager) { |
std::unique_ptr<BufferQueue> buffer_queue( |
- new BufferQueue(gl, target, GL_RGBA, nullptr, gpu_memory_buffer_manager, |
+ new BufferQueue(gl, target, GL_RGB, nullptr, gpu_memory_buffer_manager, |
kFakeSurfaceHandle)); |
buffer_queue->Initialize(); |
return buffer_queue; |
@@ -301,7 +301,7 @@ TEST(BufferQueueStandaloneTest, FboBinding) { |
EXPECT_CALL(*context, bindTexture(target, Ne(0U))); |
EXPECT_CALL(*context, destroyImageCHROMIUM(1)); |
Expectation image = |
- EXPECT_CALL(*context, createImageCHROMIUM(_, 0, 0, GL_RGBA)) |
+ EXPECT_CALL(*context, createImageCHROMIUM(_, 0, 0, GL_RGB)) |
.WillOnce(Return(1)); |
Expectation fb = |
EXPECT_CALL(*context, bindFramebuffer(GL_FRAMEBUFFER, Ne(0U))); |
@@ -331,7 +331,7 @@ TEST(BufferQueueStandaloneTest, CheckBoundFramebuffer) { |
context_provider->ContextSupport())); |
output_surface.reset(new BufferQueue( |
- context_provider->ContextGL(), GL_TEXTURE_2D, GL_RGBA, gl_helper.get(), |
+ context_provider->ContextGL(), GL_TEXTURE_2D, GL_RGB, gl_helper.get(), |
gpu_memory_buffer_manager.get(), kFakeSurfaceHandle)); |
output_surface->Initialize(); |
output_surface->Reshape(screen_size, 1.0f, gfx::ColorSpace()); |
@@ -581,7 +581,7 @@ TEST_F(BufferQueueMockedContextTest, RecreateBuffers) { |
// Expect all 4 images to be destroyed, 3 of the existing textures to be |
// copied from and 3 new images to be created. |
- EXPECT_CALL(*context_, createImageCHROMIUM(_, 0, 0, GL_RGBA)).Times(3); |
+ EXPECT_CALL(*context_, createImageCHROMIUM(_, 0, 0, GL_RGB)).Times(3); |
Expectation copy1 = EXPECT_CALL(*mock_output_surface_, |
CopyBufferDamage(_, displayed->texture, _, _)) |
.Times(1); |