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

Unified Diff: content/common/gpu/client/gpu_memory_buffer_impl_unittest.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
Index: content/common/gpu/client/gpu_memory_buffer_impl_unittest.cc
diff --git a/content/common/gpu/client/gpu_memory_buffer_impl_unittest.cc b/content/common/gpu/client/gpu_memory_buffer_impl_unittest.cc
index 91be10a9c9a39cd018ebbc95d26dfa31a89e053e..d96c7f43409d5ae8ef88077f8dec6b823705375d 100644
--- a/content/common/gpu/client/gpu_memory_buffer_impl_unittest.cc
+++ b/content/common/gpu/client/gpu_memory_buffer_impl_unittest.cc
@@ -26,11 +26,10 @@ class GpuMemoryBufferImplTest
}
void TearDown() override { factory_.reset(); }
- gfx::GpuMemoryBufferHandle CreateGpuMemoryBuffer(
- gfx::GpuMemoryBufferId id,
- const gfx::Size& size,
- gfx::GpuMemoryBuffer::Format format,
- gfx::GpuMemoryBuffer::Usage usage) {
+ gfx::GpuMemoryBufferHandle CreateGpuMemoryBuffer(gfx::GpuMemoryBufferId id,
+ const gfx::Size& size,
+ gfx::BufferFormat format,
+ gfx::BufferUsage usage) {
++buffer_count_;
return factory_->CreateGpuMemoryBuffer(id, size, format, usage, kClientId,
gfx::kNullPluginWindow);
@@ -79,7 +78,7 @@ TEST_P(GpuMemoryBufferImplTest, Map) {
gfx::Size buffer_size(4, 4);
for (auto configuration : supported_configurations_) {
- if (configuration.usage != gfx::GpuMemoryBuffer::MAP)
+ if (configuration.usage != gfx::BufferUsage::MAP)
continue;
scoped_ptr<GpuMemoryBufferImpl> buffer(
@@ -142,7 +141,7 @@ TEST_P(GpuMemoryBufferImplTest, PersistentMap) {
gfx::Size buffer_size(4, 4);
for (auto configuration : supported_configurations_) {
- if (configuration.usage != gfx::GpuMemoryBuffer::PERSISTENT_MAP)
+ if (configuration.usage != gfx::BufferUsage::PERSISTENT_MAP)
continue;
scoped_ptr<GpuMemoryBufferImpl> buffer(
« no previous file with comments | « content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.cc ('k') | content/common/gpu/gpu_channel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698