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 "ui/gl/gl_fence.h" | 5 #include "ui/gl/gl_fence.h" |
6 | 6 |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 #include "ui/gl/gl_bindings.h" | 9 #include "ui/gl/gl_bindings.h" |
10 #include "ui/gl/gl_context.h" | 10 #include "ui/gl/gl_context.h" |
11 #include "ui/gl/gl_fence_arb.h" | 11 #include "ui/gl/gl_fence_arb.h" |
12 #include "ui/gl/gl_fence_egl.h" | 12 #include "ui/gl/gl_fence_egl.h" |
13 #include "ui/gl/gl_fence_nv.h" | 13 #include "ui/gl/gl_fence_nv.h" |
14 #include "ui/gl/gl_gl_api_implementation.h" | 14 #include "ui/gl/gl_gl_api_implementation.h" |
15 #include "ui/gl/gl_implementation.h" | 15 #include "ui/gl/gl_implementation.h" |
16 #include "ui/gl/gl_version_info.h" | 16 #include "ui/gl/gl_version_info.h" |
17 | 17 |
18 #if defined(OS_MACOSX) | 18 #if defined(OS_MACOSX) |
19 #include "ui/gl/gl_fence_apple.h" | 19 #include "ui/gl/gl_fence_apple.h" |
20 #endif | 20 #endif |
21 | 21 |
22 namespace gfx { | 22 namespace gl { |
23 | 23 |
24 GLFence::GLFence() { | 24 GLFence::GLFence() { |
25 } | 25 } |
26 | 26 |
27 GLFence::~GLFence() { | 27 GLFence::~GLFence() { |
28 } | 28 } |
29 | 29 |
30 bool GLFence::IsSupported() { | 30 bool GLFence::IsSupported() { |
31 DCHECK(GetGLVersionInfo()); | 31 DCHECK(GetGLVersionInfo()); |
32 return g_driver_gl.ext.b_GL_ARB_sync || GetGLVersionInfo()->is_es3 || | 32 return g_driver_gl.ext.b_GL_ARB_sync || GetGLVersionInfo()->is_es3 || |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 | 72 |
73 bool GLFence::ResetSupported() { | 73 bool GLFence::ResetSupported() { |
74 // Resetting a fence to its original state isn't supported by default. | 74 // Resetting a fence to its original state isn't supported by default. |
75 return false; | 75 return false; |
76 } | 76 } |
77 | 77 |
78 void GLFence::ResetState() { | 78 void GLFence::ResetState() { |
79 NOTIMPLEMENTED(); | 79 NOTIMPLEMENTED(); |
80 } | 80 } |
81 | 81 |
82 } // namespace gfx | 82 } // namespace gl |
OLD | NEW |