| 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 CC_OUTPUT_SOFTWARE_OUTPUT_DEVICE_H_ | 5 #ifndef CC_OUTPUT_SOFTWARE_OUTPUT_DEVICE_H_ |
| 6 #define CC_OUTPUT_SOFTWARE_OUTPUT_DEVICE_H_ | 6 #define CC_OUTPUT_SOFTWARE_OUTPUT_DEVICE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "cc/base/cc_export.h" | 11 #include "cc/base/cc_export.h" |
| 12 #include "third_party/skia/include/core/SkSurface.h" | 12 #include "third_party/skia/include/core/SkSurface.h" |
| 13 #include "ui/gfx/geometry/rect.h" | 13 #include "ui/gfx/geometry/rect.h" |
| 14 #include "ui/gfx/geometry/size.h" | 14 #include "ui/gfx/geometry/size.h" |
| 15 #include "ui/gfx/geometry/vector2d.h" | 15 #include "ui/gfx/geometry/vector2d.h" |
| 16 | 16 |
| 17 class SkBitmap; | |
| 18 class SkCanvas; | 17 class SkCanvas; |
| 19 | 18 |
| 20 namespace gfx { | 19 namespace gfx { |
| 21 class VSyncProvider; | 20 class VSyncProvider; |
| 22 } | 21 } |
| 23 | 22 |
| 24 namespace cc { | 23 namespace cc { |
| 25 | 24 |
| 26 // This is a "tear-off" class providing software drawing support to | 25 // This is a "tear-off" class providing software drawing support to |
| 27 // OutputSurface, such as to a platform-provided window framebuffer. | 26 // OutputSurface, such as to a platform-provided window framebuffer. |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 sk_sp<SkSurface> surface_; | 61 sk_sp<SkSurface> surface_; |
| 63 std::unique_ptr<gfx::VSyncProvider> vsync_provider_; | 62 std::unique_ptr<gfx::VSyncProvider> vsync_provider_; |
| 64 | 63 |
| 65 private: | 64 private: |
| 66 DISALLOW_COPY_AND_ASSIGN(SoftwareOutputDevice); | 65 DISALLOW_COPY_AND_ASSIGN(SoftwareOutputDevice); |
| 67 }; | 66 }; |
| 68 | 67 |
| 69 } // namespace cc | 68 } // namespace cc |
| 70 | 69 |
| 71 #endif // CC_OUTPUT_SOFTWARE_OUTPUT_DEVICE_H_ | 70 #endif // CC_OUTPUT_SOFTWARE_OUTPUT_DEVICE_H_ |
| OLD | NEW |