| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #ifndef WebIOSurfaceLayerImpl_h | 5 #ifndef WebIOSurfaceLayerImpl_h |
| 6 #define WebIOSurfaceLayerImpl_h | 6 #define WebIOSurfaceLayerImpl_h |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "third_party/WebKit/Source/Platform/chromium/public/WebIOSurfaceLayer.h
" | 9 #include "third_party/WebKit/Source/Platform/chromium/public/WebIOSurfaceLayer.h
" |
| 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h" |
| 10 #include "webkit/compositor_bindings/webkit_compositor_bindings_export.h" | 11 #include "webkit/compositor_bindings/webkit_compositor_bindings_export.h" |
| 11 | 12 |
| 12 namespace WebKit { | 13 namespace WebKit { |
| 13 | 14 |
| 14 class WebIOSurfaceLayerImpl : public WebIOSurfaceLayer { | 15 class WebIOSurfaceLayerImpl : public WebIOSurfaceLayer { |
| 15 public: | 16 public: |
| 16 WEBKIT_COMPOSITOR_BINDINGS_EXPORT WebIOSurfaceLayerImpl(); | 17 WEBKIT_COMPOSITOR_BINDINGS_EXPORT WebIOSurfaceLayerImpl(); |
| 17 virtual ~WebIOSurfaceLayerImpl(); | 18 virtual ~WebIOSurfaceLayerImpl(); |
| 18 | 19 |
| 19 // WebIOSurfaceLayer implementation. | 20 // WebIOSurfaceLayer implementation. |
| 20 virtual WebLayer* layer() OVERRIDE; | 21 virtual WebLayer* layer(); |
| 21 virtual void setIOSurfaceProperties(unsigned io_surface_id, WebSize) OVERRIDE; | 22 virtual void setIOSurfaceProperties(unsigned io_surface_id, WebSize); |
| 22 | 23 |
| 23 private: | 24 private: |
| 24 scoped_ptr<WebLayerImpl> layer_; | 25 scoped_ptr<WebLayerImpl> layer_; |
| 25 }; | 26 }; |
| 26 | 27 |
| 27 } | 28 } |
| 28 | 29 |
| 29 #endif // WebIOSurfaceLayerImpl_h | 30 #endif // WebIOSurfaceLayerImpl_h |
| 30 | 31 |
| OLD | NEW |