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

Unified Diff: gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h

Issue 2627323007: Migrate WebGL contexts on backgrounded tabs to the integrated GPU.
Patch Set: Created 3 years, 11 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/service/gles2_cmd_validation_implementation_autogen.h
diff --git a/gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h b/gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h
index 280f736988c48f6c84ff92bf73a1a2a634372220..03556bce163b2349b79d7057df3af7491da1a6ba 100644
--- a/gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h
+++ b/gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h
@@ -655,6 +655,17 @@ bool Validators::PathTransformTypeValidator::IsValid(const GLenum value) const {
return false;
};
+bool Validators::PerformanceHintModeValidator::IsValid(
+ const GLenum value) const {
+ switch (value) {
+ case GL_DEFAULT_POWER_CHROMIUM:
+ case GL_LOW_POWER_CHROMIUM:
+ case GL_HIGH_PERFORMANCE_CHROMIUM:
+ return true;
+ }
+ return false;
+};
+
static const GLenum valid_pixel_store_table[] = {
GL_PACK_ALIGNMENT, GL_UNPACK_ALIGNMENT,
};

Powered by Google App Engine
This is Rietveld 408576698