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

Side by Side Diff: webkit/compositor_bindings/web_compositor_support_software_output_device.h

Issue 11348371: cc: Move WebCompositorOutputSurface and related classes into cc/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: forlanding6 Created 8 years 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 | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698