OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #if defined(ENABLE_GPU) | 5 #if defined(ENABLE_GPU) |
6 | 6 |
7 #include "content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.h" | 7 #include "content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.h" |
8 | 8 |
9 #include <GLES2/gl2.h> | 9 #include "gpu/GLES2/gl2.h" |
10 #ifndef GL_GLEXT_PROTOTYPES | 10 #ifndef GL_GLEXT_PROTOTYPES |
11 #define GL_GLEXT_PROTOTYPES 1 | 11 #define GL_GLEXT_PROTOTYPES 1 |
12 #endif | 12 #endif |
13 #include <GLES2/gl2ext.h> | 13 #include "gpu/GLES2/gl2ext.h" |
14 | 14 |
15 #include <algorithm> | 15 #include <algorithm> |
16 #include <set> | 16 #include <set> |
17 | 17 |
18 #include "base/lazy_instance.h" | 18 #include "base/lazy_instance.h" |
19 #include "base/string_tokenizer.h" | 19 #include "base/string_tokenizer.h" |
20 #include "base/command_line.h" | 20 #include "base/command_line.h" |
21 #include "base/debug/trace_event.h" | 21 #include "base/debug/trace_event.h" |
22 #include "base/logging.h" | 22 #include "base/logging.h" |
23 #include "base/metrics/histogram.h" | 23 #include "base/metrics/histogram.h" |
(...skipping 1034 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1058 context_lost_callback_->onContextLost(); | 1058 context_lost_callback_->onContextLost(); |
1059 } | 1059 } |
1060 | 1060 |
1061 RenderView* renderview = | 1061 RenderView* renderview = |
1062 web_view_ ? RenderView::FromWebView(web_view_) : NULL; | 1062 web_view_ ? RenderView::FromWebView(web_view_) : NULL; |
1063 if (renderview) | 1063 if (renderview) |
1064 renderview->OnViewContextSwapBuffersAborted(); | 1064 renderview->OnViewContextSwapBuffersAborted(); |
1065 } | 1065 } |
1066 | 1066 |
1067 #endif // defined(ENABLE_GPU) | 1067 #endif // defined(ENABLE_GPU) |
OLD | NEW |