Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1365)

Side by Side Diff: Source/WebCore/platform/graphics/surfaces/egl/EGLSurface.cpp

Issue 13046002: Revert 146458 "[EFL][WebGL] Implement a common GraphicsSurface I..." (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1451/
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/WebCore/platform/graphics/surfaces/egl/EGLSurface.h ('k') | Source/WebCore/platform/graphics/surfaces/glx/GLXSurface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698