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

Unified Diff: cc/test/test_web_graphics_context_3d.cc

Issue 2213273002: ozone: Consolidate primary plane format. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comment on a single line. Created 4 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 | « no previous file | components/display_compositor/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/test_web_graphics_context_3d.cc
diff --git a/cc/test/test_web_graphics_context_3d.cc b/cc/test/test_web_graphics_context_3d.cc
index 4f0e3e610e8157be4b9f7e930d73e3c72435c7c9..8f690b735ecd3c760e5fb984097739a8af3bbdd6 100644
--- a/cc/test/test_web_graphics_context_3d.cc
+++ b/cc/test/test_web_graphics_context_3d.cc
@@ -609,7 +609,7 @@ GLuint TestWebGraphicsContext3D::createImageCHROMIUM(ClientBuffer buffer,
GLsizei width,
GLsizei height,
GLenum internalformat) {
- DCHECK_EQ(GL_RGBA, static_cast<int>(internalformat));
+ DCHECK(internalformat == GL_RGB || internalformat == GL_RGBA);
GLuint image_id = NextImageId();
base::AutoLock lock(namespace_->lock);
std::unordered_set<unsigned>& images = namespace_->images;
@@ -632,7 +632,7 @@ GLuint TestWebGraphicsContext3D::createGpuMemoryBufferImageCHROMIUM(
GLsizei height,
GLenum internalformat,
GLenum usage) {
- DCHECK_EQ(GL_RGBA, static_cast<int>(internalformat));
+ DCHECK(internalformat == GL_RGB || internalformat == GL_RGBA);
GLuint image_id = NextImageId();
base::AutoLock lock(namespace_->lock);
std::unordered_set<unsigned>& images = namespace_->images;
« no previous file with comments | « no previous file | components/display_compositor/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698