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

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

Issue 2689203002: Check for some extensions before calling potentially NULL GL entry points. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/gles2_cmd_decoder_passthrough.h
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_passthrough.h b/gpu/command_buffer/service/gles2_cmd_decoder_passthrough.h
index 0193b4aa35b665c8ab5f2415686367ec3f2ea813..2b56bbf5f407c752635d45be1966a5067b2d317a 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder_passthrough.h
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_passthrough.h
@@ -287,6 +287,8 @@ class GLES2DecoderPassthroughImpl : public GLES2Decoder {
void UpdateTextureBinding(GLenum target, GLuint client_id, GLuint service_id);
+ void InitializeNativeCaps();
+
int commands_to_process_;
DebugMarkerManager debug_marker_manager_;
@@ -377,6 +379,14 @@ class GLES2DecoderPassthroughImpl : public GLES2Decoder {
std::set<GLenum> errors_;
+ // Native caps
+ bool has_es3_;
+ bool has_ext_discard_framebuffer_;
+ bool has_angle_framebuffer_multisample_;
+ bool has_ext_disjoint_timer_query_;
+ bool has_chromium_copy_texture_;
+ bool has_chromium_copy_compressed_texture_;
Zhenyao Mo 2017/02/13 18:12:08 Can we consolidate these to FeatureInfo? It seems
Geoff Lang 2017/02/13 19:53:06 I tried but these features are enabled sometimes w
+
// Cache of scratch memory
std::vector<uint8_t> scratch_memory_;
« no previous file with comments | « no previous file | gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698