| Index: ui/gl/gl_image_ref_counted_memory_unittest.cc
|
| diff --git a/ui/gl/gl_image_ref_counted_memory_unittest.cc b/ui/gl/gl_image_ref_counted_memory_unittest.cc
|
| index 3bbe6aaccbe442a999ffc49ce644f1c6a0fcc1b2..affc5dec88658d4ed3afef3f71ff44e0faf779af 100644
|
| --- a/ui/gl/gl_image_ref_counted_memory_unittest.cc
|
| +++ b/ui/gl/gl_image_ref_counted_memory_unittest.cc
|
| @@ -7,6 +7,7 @@
|
| #include "base/memory/ref_counted_memory.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
| #include "ui/gl/gl_image_ref_counted_memory.h"
|
| +#include "ui/gl/gl_utils.h"
|
| #include "ui/gl/test/gl_image_test_template.h"
|
|
|
| namespace gl {
|
| @@ -25,8 +26,8 @@ class GLImageRefCountedMemoryTestDelegate {
|
| size.width(), size.height(),
|
| static_cast<int>(RowSizeForBufferFormat(size.width(), format, 0)),
|
| format, color, &bytes->data().front());
|
| - scoped_refptr<GLImageRefCountedMemory> image(new GLImageRefCountedMemory(
|
| - size, gl::GLImageMemory::GetInternalFormatForTesting(format)));
|
| + scoped_refptr<GLImageRefCountedMemory> image(
|
| + new GLImageRefCountedMemory(size, gl::GetTextureFormatFrom(format)));
|
| bool rv = image->Initialize(bytes.get(), format);
|
| EXPECT_TRUE(rv);
|
| return image;
|
|
|