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

Unified Diff: gpu/command_buffer/common/gpu_memory_buffer_support.cc

Issue 2820373003: WebGL: Tidy up buffer allocation logic (Closed)
Patch Set: No incidental bugfix Created 3 years, 8 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: gpu/command_buffer/common/gpu_memory_buffer_support.cc
diff --git a/gpu/command_buffer/common/gpu_memory_buffer_support.cc b/gpu/command_buffer/common/gpu_memory_buffer_support.cc
index 0159b48fde180f269d75ded05f418395afbb63ba..481f0b21c90232d1491176d27e298192c0445b67 100644
--- a/gpu/command_buffer/common/gpu_memory_buffer_support.cc
+++ b/gpu/command_buffer/common/gpu_memory_buffer_support.cc
@@ -50,18 +50,6 @@ gfx::BufferFormat BufferFormatForInternalFormat(unsigned internalformat) {
} // namespace
-gfx::BufferFormat DefaultBufferFormatForImageFormat(unsigned internalformat) {
- switch (internalformat) {
- case GL_RGB:
- return gfx::BufferFormat::BGRX_8888;
- case GL_RGBA:
- return gfx::BufferFormat::RGBA_8888;
- default:
- NOTREACHED();
- return gfx::BufferFormat::RGBA_8888;
- }
-}
-
bool IsImageFormatCompatibleWithGpuMemoryBufferFormat(
unsigned internalformat,
gfx::BufferFormat format) {
« no previous file with comments | « gpu/command_buffer/common/gpu_memory_buffer_support.h ('k') | third_party/WebKit/Source/platform/graphics/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698