| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Intel Corporation. All rights reserved. | 2 * Copyright (C) 2012 Intel Corporation. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 * THE POSSIBILITY OF SUCH DAMAGE. | 23 * THE POSSIBILITY OF SUCH DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #include "config.h" | 26 #include "config.h" |
| 27 #include "EGLSurface.h" | 27 #include "EGLSurface.h" |
| 28 | 28 |
| 29 #if USE(EGL) && USE(GRAPHICS_SURFACE) | 29 #if USE(EGL) && USE(GRAPHICS_SURFACE) |
| 30 | 30 |
| 31 namespace WebCore { | 31 namespace WebCore { |
| 32 | 32 |
| 33 EGLWindowTransportSurface::EGLWindowTransportSurface(const IntSize& size, Surfac
eAttributes attributes) | 33 EGLWindowTransportSurface::EGLWindowTransportSurface(SurfaceAttributes attribute
s) |
| 34 : GLTransportSurface(size, attributes) | 34 : GLTransportSurface(attributes) |
| 35 { | 35 { |
| 36 m_configSelector = adoptPtr(new EGLConfigSelector(attributes, NativeWrapper:
:nativeDisplay())); | 36 m_configSelector = adoptPtr(new EGLConfigSelector(attributes, NativeWrapper:
:nativeDisplay())); |
| 37 m_sharedDisplay = m_configSelector->display(); | 37 m_sharedDisplay = m_configSelector->display(); |
| 38 | 38 |
| 39 if (m_sharedDisplay == EGL_NO_DISPLAY) { | 39 if (m_sharedDisplay == EGL_NO_DISPLAY) { |
| 40 m_configSelector = nullptr; | 40 m_configSelector = nullptr; |
| 41 return; | 41 return; |
| 42 } | 42 } |
| 43 | 43 |
| 44 EGLConfig config = m_configSelector->surfaceContextConfig(); | 44 EGLConfig config = m_configSelector->surfaceContextConfig(); |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 | 130 |
| 131 void EGLWindowTransportSurface::setGeometry(const IntRect& newRect) | 131 void EGLWindowTransportSurface::setGeometry(const IntRect& newRect) |
| 132 { | 132 { |
| 133 GLTransportSurface::setGeometry(newRect); | 133 GLTransportSurface::setGeometry(newRect); |
| 134 NativeWrapper::resizeWindow(newRect, m_bufferHandle); | 134 NativeWrapper::resizeWindow(newRect, m_bufferHandle); |
| 135 } | 135 } |
| 136 | 136 |
| 137 } | 137 } |
| 138 | 138 |
| 139 #endif | 139 #endif |
| OLD | NEW |