OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef WEBKIT_COMPOSITOR_BINDINGS_WEB_COMPOSITOR_SUPPORT_SOFTWARE_OUTPUT_DEVICE
_H_ |
| 6 #define WEBKIT_COMPOSITOR_BINDINGS_WEB_COMPOSITOR_SUPPORT_SOFTWARE_OUTPUT_DEVICE
_H_ |
| 7 |
| 8 #include "base/logging.h" |
| 9 #include "cc/software_output_device.h" |
| 10 #include "skia/ext/refptr.h" |
| 11 #include "third_party/WebKit/Source/Platform/chromium/public/WebImage.h" |
| 12 #include "third_party/skia/include/core/SkDevice.h" |
| 13 |
| 14 namespace webkit { |
| 15 |
| 16 class WebCompositorSupportSoftwareOutputDevice |
| 17 : public cc::SoftwareOutputDevice { |
| 18 public: |
| 19 WebCompositorSupportSoftwareOutputDevice(); |
| 20 virtual ~WebCompositorSupportSoftwareOutputDevice(); |
| 21 |
| 22 virtual WebKit::WebImage* Lock(bool forWrite) OVERRIDE; |
| 23 virtual void Unlock() OVERRIDE; |
| 24 |
| 25 virtual void DidChangeViewportSize(gfx::Size size) OVERRIDE; |
| 26 |
| 27 private: |
| 28 skia::RefPtr<SkDevice> device_; |
| 29 WebKit::WebImage image_; |
| 30 }; |
| 31 |
| 32 } // namespace webkit |
| 33 |
| 34 #endif // WEBKIT_COMPOSITOR_BINDINGS_WEB_COMPOSITOR_SUPPORT_SOFTWARE_OUTPUT_DEV
ICE_H_ |
OLD | NEW |