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

Unified Diff: content/child/child_thread_impl_browsertest.cc

Issue 1269503007: Unify graphics buffer format & usage enums for GpuMemoryBuffer & SurfaceFactoryOzone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add header to BUILD.gn Created 5 years, 4 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
« no previous file with comments | « content/child/child_gpu_memory_buffer_manager.cc ('k') | content/common/child_process_host_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/child_thread_impl_browsertest.cc
diff --git a/content/child/child_thread_impl_browsertest.cc b/content/child/child_thread_impl_browsertest.cc
index d35cc4a46435ce68101fe02bd099462223e4c673..c841e6dbc721154f36afcbd2a0114636cca8c501 100644
--- a/content/child/child_thread_impl_browsertest.cc
+++ b/content/child/child_thread_impl_browsertest.cc
@@ -129,7 +129,7 @@ enum NativeBufferFlag { kDisableNativeBuffers, kEnableNativeBuffers };
class ChildThreadImplGpuMemoryBufferBrowserTest
: public ChildThreadImplBrowserTest,
public testing::WithParamInterface<
- ::testing::tuple<NativeBufferFlag, gfx::GpuMemoryBuffer::Format>> {
+ ::testing::tuple<NativeBufferFlag, gfx::BufferFormat>> {
public:
// Overridden from BrowserTestBase:
void SetUpCommandLine(base::CommandLine* command_line) override {
@@ -147,12 +147,12 @@ class ChildThreadImplGpuMemoryBufferBrowserTest
IN_PROC_BROWSER_TEST_P(ChildThreadImplGpuMemoryBufferBrowserTest,
DISABLED_Map) {
- gfx::GpuMemoryBuffer::Format format = ::testing::get<1>(GetParam());
+ gfx::BufferFormat format = ::testing::get<1>(GetParam());
gfx::Size buffer_size(4, 4);
scoped_ptr<gfx::GpuMemoryBuffer> buffer =
child_gpu_memory_buffer_manager()->AllocateGpuMemoryBuffer(
- buffer_size, format, gfx::GpuMemoryBuffer::MAP);
+ buffer_size, format, gfx::BufferUsage::MAP);
ASSERT_TRUE(buffer);
EXPECT_EQ(format, buffer->GetFormat());
@@ -199,11 +199,11 @@ INSTANTIATE_TEST_CASE_P(
::testing::Combine(::testing::Values(kDisableNativeBuffers,
kEnableNativeBuffers),
// These formats are guaranteed to work on all platforms.
- ::testing::Values(gfx::GpuMemoryBuffer::R_8,
- gfx::GpuMemoryBuffer::RGBA_4444,
- gfx::GpuMemoryBuffer::RGBA_8888,
- gfx::GpuMemoryBuffer::BGRA_8888,
- gfx::GpuMemoryBuffer::YUV_420)));
+ ::testing::Values(gfx::BufferFormat::R_8,
+ gfx::BufferFormat::RGBA_4444,
+ gfx::BufferFormat::RGBA_8888,
+ gfx::BufferFormat::BGRA_8888,
+ gfx::BufferFormat::YUV_420)));
} // namespace
} // namespace content
« no previous file with comments | « content/child/child_gpu_memory_buffer_manager.cc ('k') | content/common/child_process_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698