Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(892)

Unified Diff: ui/gl/gl_image_ref_counted_memory_unittest.cc

Issue 1484473003: gl, ozone: enable GLImageBindTest unittests Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698