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

Unified Diff: content/browser/compositor/buffer_queue_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/browser/compositor/buffer_queue_unittest.cc
diff --git a/content/browser/compositor/buffer_queue_unittest.cc b/content/browser/compositor/buffer_queue_unittest.cc
index 670d4d38b99702548caad1600df0f833eb14cb96..dba8b157ce91bc0280bb3b70bdc856ead1f62b07 100644
--- a/content/browser/compositor/buffer_queue_unittest.cc
+++ b/content/browser/compositor/buffer_queue_unittest.cc
@@ -30,7 +30,9 @@ class StubGpuMemoryBufferImpl : public gfx::GpuMemoryBuffer {
bool Map(void** data) override { return false; }
void Unmap() override {}
bool IsMapped() const override { return false; }
- Format GetFormat() const override { return gfx::GpuMemoryBuffer::RGBX_8888; }
+ gfx::BufferFormat GetFormat() const override {
+ return gfx::BufferFormat::RGBX_8888;
+ }
void GetStride(int* stride) const override {}
gfx::GpuMemoryBufferId GetId() const override { return 0; }
gfx::GpuMemoryBufferHandle GetHandle() const override {
@@ -47,7 +49,7 @@ class StubBrowserGpuMemoryBufferManager : public BrowserGpuMemoryBufferManager {
scoped_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBufferForScanout(
const gfx::Size& size,
- gfx::GpuMemoryBuffer::Format format,
+ gfx::BufferFormat format,
int32 surface_id) override {
return make_scoped_ptr<gfx::GpuMemoryBuffer>(new StubGpuMemoryBufferImpl);
}

Powered by Google App Engine
This is Rietveld 408576698