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 CC_TEST_FAKE_SOFTWARE_OUTPUT_DEVICE_H_ | |
6 #define CC_TEST_FAKE_SOFTWARE_OUTPUT_DEVICE_H_ | |
7 | |
8 #include <public/WebImage.h> | |
jamesr
2012/12/04 07:06:51
"third_party/WebKit..."
| |
9 | |
10 #include "base/logging.h" | |
11 #include "cc/software_output_device.h" | |
12 #include "skia/ext/refptr.h" | |
13 #include "third_party/skia/include/core/SkDevice.h" | |
14 | |
15 namespace cc { | |
16 | |
17 class FakeSoftwareOutputDevice : public SoftwareOutputDevice { | |
18 public: | |
19 FakeSoftwareOutputDevice(); | |
20 virtual ~FakeSoftwareOutputDevice(); | |
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 cc | |
33 | |
34 #endif // CC_TEST_FAKE_SOFTWARE_OUTPUT_DEVICE_H_ | |
OLD | NEW |