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 FakeWebCompositorSoftwareOutputDevice_h | 5 #ifndef CC_TEST_FAKE_WEB_COMPOSITOR_SOFTWARE_OUTPUT_DEVICE_H_ |
6 #define FakeWebCompositorSoftwareOutputDevice_h | 6 #define CC_TEST_FAKE_WEB_COMPOSITOR_SOFTWARE_OUTPUT_DEVICE_H_ |
7 | 7 |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "third_party/skia/include/core/SkDevice.h" | 10 #include "third_party/skia/include/core/SkDevice.h" |
11 #include <public/WebCompositorSoftwareOutputDevice.h> | 11 #include <public/WebCompositorSoftwareOutputDevice.h> |
12 #include <public/WebImage.h> | 12 #include <public/WebImage.h> |
13 #include <public/WebSize.h> | 13 #include <public/WebSize.h> |
14 | 14 |
15 namespace WebKit { | 15 namespace WebKit { |
16 | 16 |
(...skipping 18 matching lines...) Expand all Loading... |
35 m_device.reset(new SkDevice(SkBitmap::kARGB_8888_Config, size.width, siz
e.height, true)); | 35 m_device.reset(new SkDevice(SkBitmap::kARGB_8888_Config, size.width, siz
e.height, true)); |
36 } | 36 } |
37 | 37 |
38 private: | 38 private: |
39 scoped_ptr<SkDevice> m_device; | 39 scoped_ptr<SkDevice> m_device; |
40 WebImage m_image; | 40 WebImage m_image; |
41 }; | 41 }; |
42 | 42 |
43 } // namespace WebKit | 43 } // namespace WebKit |
44 | 44 |
45 #endif // FakeWebCompositorSoftwareOutputDevice_h | 45 #endif // CC_TEST_FAKE_WEB_COMPOSITOR_SOFTWARE_OUTPUT_DEVICE_H_ |
OLD | NEW |