diff options
author | tfarina <tfarina@chromium.org> | 2015-10-29 05:50:45 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-10-29 12:51:20 +0000 |
commit | df856e02c830fb37ca5afceac7a12b4bddf37a84 (patch) | |
tree | 61983bf3545c61f167673bdd1c8b19084bfe3472 /ui/gl/gl_image_shared_memory_unittest.cc | |
parent | 69a0876721e24f35ba1f7c6338ed07ca684f5cb1 (diff) | |
download | chromium_src-df856e02c830fb37ca5afceac7a12b4bddf37a84.zip chromium_src-df856e02c830fb37ca5afceac7a12b4bddf37a84.tar.gz chromium_src-df856e02c830fb37ca5afceac7a12b4bddf37a84.tar.bz2 |
ui/gl: Move GLImage into gl namespace.
BUG=461575
R=piman@chromium.org,sievers@chromium.org,
TBR=fsamuel@chromium.org
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Review URL: https://codereview.chromium.org/1421903006
Cr-Commit-Position: refs/heads/master@{#356825}
Diffstat (limited to 'ui/gl/gl_image_shared_memory_unittest.cc')
-rw-r--r-- | ui/gl/gl_image_shared_memory_unittest.cc | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/ui/gl/gl_image_shared_memory_unittest.cc b/ui/gl/gl_image_shared_memory_unittest.cc index 48dfce6..c7b85db 100644 --- a/ui/gl/gl_image_shared_memory_unittest.cc +++ b/ui/gl/gl_image_shared_memory_unittest.cc @@ -14,8 +14,9 @@ namespace { template <BufferFormat format> class GLImageSharedMemoryTestDelegate { public: - scoped_refptr<GLImage> CreateSolidColorImage(const Size& size, - const uint8_t color[4]) const { + scoped_refptr<gl::GLImage> CreateSolidColorImage( + const Size& size, + const uint8_t color[4]) const { DCHECK_EQ(NumberOfPlanesForBufferFormat(format), 1u); base::SharedMemory shared_memory; bool rv = shared_memory.CreateAndMapAnonymous( @@ -25,8 +26,8 @@ class GLImageSharedMemoryTestDelegate { size.width(), size.height(), static_cast<int>(RowSizeForBufferFormat(size.width(), format, 0)), format, color, reinterpret_cast<uint8_t*>(shared_memory.memory())); - scoped_refptr<GLImageSharedMemory> image(new GLImageSharedMemory( - size, GLImageMemory::GetInternalFormatForTesting(format))); + scoped_refptr<gl::GLImageSharedMemory> image(new gl::GLImageSharedMemory( + size, gl::GLImageMemory::GetInternalFormatForTesting(format))); rv = image->Initialize( base::SharedMemory::DuplicateHandle(shared_memory.handle()), GenericSharedMemoryId(0), format, 0); @@ -51,7 +52,7 @@ INSTANTIATE_TYPED_TEST_CASE_P(GLImageSharedMemory, class GLImageSharedMemoryPoolTestDelegate { public: - scoped_refptr<GLImage> CreateSolidColorImage(const Size& size, + scoped_refptr<gl::GLImage> CreateSolidColorImage(const Size& size, const uint8_t color[4]) const { // Create a shared memory segment that is 2 pages larger than image. size_t pool_size = @@ -70,8 +71,8 @@ class GLImageSharedMemoryPoolTestDelegate { RowSizeForBufferFormat(size.width(), BufferFormat::RGBA_8888, 0)), BufferFormat::RGBA_8888, color, reinterpret_cast<uint8_t*>(shared_memory.memory()) + buffer_offset); - scoped_refptr<GLImageSharedMemory> image( - new GLImageSharedMemory(size, GL_RGBA)); + scoped_refptr<gl::GLImageSharedMemory> image( + new gl::GLImageSharedMemory(size, GL_RGBA)); rv = image->Initialize( base::SharedMemory::DuplicateHandle(shared_memory.handle()), GenericSharedMemoryId(0), BufferFormat::RGBA_8888, buffer_offset); |