| 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" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 fence.reset(new GLFenceEGL); | 57 fence.reset(new GLFenceEGL); |
| 58 #endif | 58 #endif |
| 59 } else if (g_driver_gl.ext.b_GL_NV_fence) { | 59 } else if (g_driver_gl.ext.b_GL_NV_fence) { |
| 60 fence.reset(new GLFenceNV); | 60 fence.reset(new GLFenceNV); |
| 61 } | 61 } |
| 62 | 62 |
| 63 DCHECK_EQ(!!fence.get(), GLFence::IsSupported()); | 63 DCHECK_EQ(!!fence.get(), GLFence::IsSupported()); |
| 64 return fence.release(); | 64 return fence.release(); |
| 65 } | 65 } |
| 66 | 66 |
| 67 bool GLFence::ResetSupported() { |
| 68 // Resetting a fence to its original state isn't supported by default. |
| 69 return false; |
| 70 } |
| 71 |
| 72 void GLFence::ResetState() { |
| 73 NOTIMPLEMENTED(); |
| 74 } |
| 75 |
| 67 } // namespace gfx | 76 } // namespace gfx |
| OLD | NEW |