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

Unified Diff: ui/gl/gl_image_ref_counted_memory_unittest.cc

Issue 1421903006: ui/gl: Move GLImage into gl namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ozone demo Created 5 years, 2 months 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 be25e63754bd16923ee6a6b049ffab3fbd59b1b3..1750a456ecd14f6a13c486ded02b8b7c22c39b4a 100644
--- a/ui/gl/gl_image_ref_counted_memory_unittest.cc
+++ b/ui/gl/gl_image_ref_counted_memory_unittest.cc
@@ -15,8 +15,9 @@ namespace {
template <BufferFormat format>
class GLImageRefCountedMemoryTestDelegate {
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);
std::vector<uint8_t> data(BufferSizeForBufferFormat(size, format));
scoped_refptr<base::RefCountedBytes> bytes(new base::RefCountedBytes(data));
@@ -25,7 +26,7 @@ class GLImageRefCountedMemoryTestDelegate {
static_cast<int>(RowSizeForBufferFormat(size.width(), format, 0)),
format, color, &bytes->data().front());
scoped_refptr<GLImageRefCountedMemory> image(new GLImageRefCountedMemory(
- size, GLImageMemory::GetInternalFormatForTesting(format)));
+ size, gl::GLImageMemory::GetInternalFormatForTesting(format)));
bool rv = image->Initialize(bytes.get(), format);
EXPECT_TRUE(rv);
return image;

Powered by Google App Engine
This is Rietveld 408576698