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

Unified Diff: content/browser/compositor/overlay_candidate_validator_ozone.cc

Issue 216633006: [Ozone] Add default case otherwise compiler complains about missing return (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 9 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/compositor/overlay_candidate_validator_ozone.cc
diff --git a/content/browser/compositor/overlay_candidate_validator_ozone.cc b/content/browser/compositor/overlay_candidate_validator_ozone.cc
index 367e7761461d07fc84632e43d5fd90cd4b3aed27..7ca5a97b2c8d794857b1e8620e75fd7c344ea253 100644
--- a/content/browser/compositor/overlay_candidate_validator_ozone.cc
+++ b/content/browser/compositor/overlay_candidate_validator_ozone.cc
@@ -17,11 +17,11 @@ static gfx::SurfaceFactoryOzone::BufferFormat GetOzoneFormat(
case cc::BGRA_8888:
case cc::LUMINANCE_8:
case cc::RGB_565:
- case cc::ETC1: {
- NOTREACHED();
- return gfx::SurfaceFactoryOzone::UNKNOWN;
- }
+ case cc::ETC1:
+ break;
}
+ NOTREACHED();
+ return gfx::SurfaceFactoryOzone::UNKNOWN;
}
OverlayCandidateValidatorOzone::OverlayCandidateValidatorOzone(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698