| Index: webkit/compositor_bindings/web_compositor_support_software_output_device.h
|
| diff --git a/webkit/compositor_bindings/web_compositor_support_software_output_device.h b/webkit/compositor_bindings/web_compositor_support_software_output_device.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..9fdfcfdcdb19fd4def41ce857b6baf27484fe73f
|
| --- /dev/null
|
| +++ b/webkit/compositor_bindings/web_compositor_support_software_output_device.h
|
| @@ -0,0 +1,34 @@
|
| +// Copyright 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef WEBKIT_COMPOSITOR_BINDINGS_WEB_COMPOSITOR_SUPPORT_SOFTWARE_OUTPUT_DEVICE_H_
|
| +#define WEBKIT_COMPOSITOR_BINDINGS_WEB_COMPOSITOR_SUPPORT_SOFTWARE_OUTPUT_DEVICE_H_
|
| +
|
| +#include "base/logging.h"
|
| +#include "cc/software_output_device.h"
|
| +#include "skia/ext/refptr.h"
|
| +#include "third_party/WebKit/Source/Platform/chromium/public/WebImage.h"
|
| +#include "third_party/skia/include/core/SkDevice.h"
|
| +
|
| +namespace webkit {
|
| +
|
| +class WebCompositorSupportSoftwareOutputDevice
|
| + : public cc::SoftwareOutputDevice {
|
| + public:
|
| + WebCompositorSupportSoftwareOutputDevice();
|
| + virtual ~WebCompositorSupportSoftwareOutputDevice();
|
| +
|
| + virtual WebKit::WebImage* Lock(bool forWrite) OVERRIDE;
|
| + virtual void Unlock() OVERRIDE;
|
| +
|
| + virtual void DidChangeViewportSize(gfx::Size size) OVERRIDE;
|
| +
|
| + private:
|
| + skia::RefPtr<SkDevice> device_;
|
| + WebKit::WebImage image_;
|
| +};
|
| +
|
| +} // namespace webkit
|
| +
|
| +#endif // WEBKIT_COMPOSITOR_BINDINGS_WEB_COMPOSITOR_SUPPORT_SOFTWARE_OUTPUT_DEVICE_H_
|
|
|