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

Unified Diff: content/common/gpu/gpu_command_buffer_stub.cc

Issue 948323002: Revert of Add support for compressed GPU memory buffers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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/gpu_command_buffer_stub.cc
diff --git a/content/common/gpu/gpu_command_buffer_stub.cc b/content/common/gpu/gpu_command_buffer_stub.cc
index c108a999454b15af174e6adb857fc7c1e2fe48e5..87f0d051939571a904aafb859d5034271ea25b85 100644
--- a/content/common/gpu/gpu_command_buffer_stub.cc
+++ b/content/common/gpu/gpu_command_buffer_stub.cc
@@ -138,29 +138,6 @@
->gpu_memory_manager()
->GetMaximumClientAllocation());
return new DevToolsChannelData(res.release());
-}
-
-bool IsSupportedImageFormat(const gpu::Capabilities& capabilities,
- gfx::GpuMemoryBuffer::Format format) {
- switch (format) {
- case gfx::GpuMemoryBuffer::ATC:
- case gfx::GpuMemoryBuffer::ATCIA:
- return capabilities.texture_format_atc;
- case gfx::GpuMemoryBuffer::BGRA_8888:
- return capabilities.texture_format_bgra8888;
- case gfx::GpuMemoryBuffer::DXT1:
- return capabilities.texture_format_dxt1;
- case gfx::GpuMemoryBuffer::DXT5:
- return capabilities.texture_format_dxt5;
- case gfx::GpuMemoryBuffer::ETC1:
- return capabilities.texture_format_etc1;
- case gfx::GpuMemoryBuffer::RGBA_8888:
- case gfx::GpuMemoryBuffer::RGBX_8888:
- return true;
- }
-
- NOTREACHED();
- return false;
}
} // namespace
@@ -979,11 +956,6 @@
return;
}
- if (!IsSupportedImageFormat(decoder_->GetCapabilities(), format)) {
- LOG(ERROR) << "Image format is not supported.";
- return;
- }
-
scoped_refptr<gfx::GLImage> image = channel()->CreateImageForGpuMemoryBuffer(
handle, size, format, internalformat);
if (!image.get())

Powered by Google App Engine
This is Rietveld 408576698