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

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

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 25 matching lines...) Expand all
36 #include <wtf/PassOwnPtr.h> 36 #include <wtf/PassOwnPtr.h>
37 37
38 namespace WebCore { 38 namespace WebCore {
39 39
40 typedef X11Helper NativeWrapper; 40 typedef X11Helper NativeWrapper;
41 41
42 // Contents of the surface are backed by native window. 42 // Contents of the surface are backed by native window.
43 class EGLWindowTransportSurface : public GLTransportSurface { 43 class EGLWindowTransportSurface : public GLTransportSurface {
44 44
45 public: 45 public:
46 EGLWindowTransportSurface(const IntSize&, SurfaceAttributes); 46 EGLWindowTransportSurface(SurfaceAttributes);
47 virtual ~EGLWindowTransportSurface(); 47 virtual ~EGLWindowTransportSurface();
48 virtual PlatformSurfaceConfig configuration() OVERRIDE; 48 virtual PlatformSurfaceConfig configuration() OVERRIDE;
49 virtual void setGeometry(const IntRect& newRect) OVERRIDE; 49 virtual void setGeometry(const IntRect& newRect) OVERRIDE;
50 virtual void swapBuffers() OVERRIDE; 50 virtual void swapBuffers() OVERRIDE;
51 virtual void destroy() OVERRIDE; 51 virtual void destroy() OVERRIDE;
52 virtual GLPlatformSurface::SurfaceAttributes attributes() const OVERRIDE; 52 virtual GLPlatformSurface::SurfaceAttributes attributes() const OVERRIDE;
53 53
54 private: 54 private:
55 void freeEGLResources(); 55 void freeEGLResources();
56 OwnPtr<EGLConfigSelector> m_configSelector; 56 OwnPtr<EGLConfigSelector> m_configSelector;
57 }; 57 };
58 58
59 } 59 }
60 60
61 #endif 61 #endif
62 62
63 #endif 63 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698