OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "content/common/gpu/media/rendering_helper.h" | 5 #include "content/common/gpu/media/rendering_helper.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/mac/scoped_nsautorelease_pool.h" | 10 #include "base/mac/scoped_nsautorelease_pool.h" |
11 #include "base/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
12 #include "base/strings/stringize_macros.h" | 12 #include "base/strings/stringize_macros.h" |
13 #include "base/synchronization/waitable_event.h" | 13 #include "base/synchronization/waitable_event.h" |
14 #include "ui/gl/gl_bindings.h" | 14 #include "ui/gl/gl_bindings.h" |
15 #include "ui/gl/gl_context.h" | 15 #include "ui/gl/gl_context.h" |
16 #include "ui/gl/gl_context_stub.h" | 16 #include "ui/gl/gl_context_stub.h" |
17 #include "ui/gl/gl_implementation.h" | 17 #include "ui/gl/gl_implementation.h" |
18 #include "ui/gl/gl_surface.h" | 18 #include "ui/gl/gl_surface.h" |
19 | 19 |
20 #if !defined(OS_WIN) && defined(ARCH_CPU_X86_FAMILY) | 20 #if !defined(OS_WIN) && defined(ARCH_CPU_X86_FAMILY) |
21 #define GL_VARIANT_GLX 1 | 21 #define GL_VARIANT_GLX 1 |
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
497 CHECK(XUnmapWindow(x_display_, x_windows_[i])); | 497 CHECK(XUnmapWindow(x_display_, x_windows_[i])); |
498 CHECK(XDestroyWindow(x_display_, x_windows_[i])); | 498 CHECK(XDestroyWindow(x_display_, x_windows_[i])); |
499 } | 499 } |
500 // Mimic newly created object. | 500 // Mimic newly created object. |
501 x_display_ = NULL; | 501 x_display_ = NULL; |
502 x_windows_.clear(); | 502 x_windows_.clear(); |
503 #endif | 503 #endif |
504 } | 504 } |
505 | 505 |
506 } // namespace content | 506 } // namespace content |
OLD | NEW |