Index: ui/gl/DEPS |
diff --git a/ui/gl/DEPS b/ui/gl/DEPS |
index 263169bb16b209afdb313987251bb234b722a3c1..862c5550b64b8b7c3cf432aa941f0d236ac18ebf 100644 |
--- a/ui/gl/DEPS |
+++ b/ui/gl/DEPS |
@@ -1,8 +1,16 @@ |
include_rules = [ |
"+third_party/khronos", |
- "+third_party/mesa/src/include", |
"+third_party/skia", |
"+ui/events", |
"+ui/gfx", |
"+ui/ozone/public", |
] |
+ |
+specific_include_rules = { |
+# This is the only target that should use the osmesa.h header. Everything else |
+# should use the GLES2 headers from third_party/khronos/ or use gl_bindings.h to |
+# get access to desktop OpenGL. |
+ "gl_surface_osmesa.cc": [ |
+ "+third_party/mesa/src/include/GL/osmesa.h", |
+ ] |
+} |