diff options
Diffstat (limited to 'content/common/gpu/client/gpu_memory_buffer_impl_unittest.cc')
-rw-r--r-- | content/common/gpu/client/gpu_memory_buffer_impl_unittest.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/content/common/gpu/client/gpu_memory_buffer_impl_unittest.cc b/content/common/gpu/client/gpu_memory_buffer_impl_unittest.cc index d96c7f4..1ab1d99 100644 --- a/content/common/gpu/client/gpu_memory_buffer_impl_unittest.cc +++ b/content/common/gpu/client/gpu_memory_buffer_impl_unittest.cc @@ -7,6 +7,7 @@ #include "base/bind.h" #include "content/common/gpu/gpu_memory_buffer_factory.h" #include "testing/gtest/include/gtest/gtest.h" +#include "ui/gfx/buffer_format_util.h" namespace content { namespace { @@ -92,8 +93,7 @@ TEST_P(GpuMemoryBufferImplTest, Map) { EXPECT_FALSE(buffer->IsMapped()); size_t num_planes = - GpuMemoryBufferImpl::NumberOfPlanesForGpuMemoryBufferFormat( - configuration.format); + gfx::NumberOfPlanesForBufferFormat(configuration.format); // Map buffer into user space. scoped_ptr<void*[]> mapped_buffers(new void*[num_planes]); @@ -155,8 +155,7 @@ TEST_P(GpuMemoryBufferImplTest, PersistentMap) { EXPECT_FALSE(buffer->IsMapped()); size_t num_planes = - GpuMemoryBufferImpl::NumberOfPlanesForGpuMemoryBufferFormat( - configuration.format); + gfx::NumberOfPlanesForBufferFormat(configuration.format); // Map buffer into user space. scoped_ptr<void* []> mapped_buffers(new void* [num_planes]); |