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 CCRendererSoftware_h | 5 #ifndef CCRendererSoftware_h |
6 #define CCRendererSoftware_h | 6 #define CCRendererSoftware_h |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "cc/cc_export.h" |
9 #include "cc/direct_renderer.h" | 10 #include "cc/direct_renderer.h" |
10 | 11 |
11 namespace WebKit { | 12 namespace WebKit { |
12 class WebCompositorSoftwareOutputDevice; | 13 class WebCompositorSoftwareOutputDevice; |
13 } | 14 } |
14 | 15 |
15 namespace cc { | 16 namespace cc { |
16 | 17 |
17 class DebugBorderDrawQuad; | 18 class DebugBorderDrawQuad; |
18 class RendererClient; | 19 class RendererClient; |
19 class ResourceProvider; | 20 class ResourceProvider; |
20 class SolidColorDrawQuad; | 21 class SolidColorDrawQuad; |
21 class TextureDrawQuad; | 22 class TextureDrawQuad; |
22 class TileDrawQuad; | 23 class TileDrawQuad; |
23 class RenderPassDrawQuad; | 24 class RenderPassDrawQuad; |
24 | 25 |
25 class SoftwareRenderer : public DirectRenderer { | 26 class CC_EXPORT SoftwareRenderer : public DirectRenderer { |
26 public: | 27 public: |
27 static scoped_ptr<SoftwareRenderer> create(RendererClient*, ResourceProvider
*, WebKit::WebCompositorSoftwareOutputDevice*); | 28 static scoped_ptr<SoftwareRenderer> create(RendererClient*, ResourceProvider
*, WebKit::WebCompositorSoftwareOutputDevice*); |
28 virtual ~SoftwareRenderer(); | 29 virtual ~SoftwareRenderer(); |
29 | 30 |
30 virtual const RendererCapabilities& capabilities() const OVERRIDE; | 31 virtual const RendererCapabilities& capabilities() const OVERRIDE; |
31 | 32 |
32 virtual void viewportChanged() OVERRIDE; | 33 virtual void viewportChanged() OVERRIDE; |
33 | 34 |
34 virtual void finish() OVERRIDE; | 35 virtual void finish() OVERRIDE; |
35 | 36 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 SkCanvas* m_skCurrentCanvas; | 74 SkCanvas* m_skCurrentCanvas; |
74 SkPaint m_skCurrentPaint; | 75 SkPaint m_skCurrentPaint; |
75 scoped_ptr<ResourceProvider::ScopedWriteLockSoftware> m_currentFramebufferLo
ck; | 76 scoped_ptr<ResourceProvider::ScopedWriteLockSoftware> m_currentFramebufferLo
ck; |
76 | 77 |
77 DISALLOW_COPY_AND_ASSIGN(SoftwareRenderer); | 78 DISALLOW_COPY_AND_ASSIGN(SoftwareRenderer); |
78 }; | 79 }; |
79 | 80 |
80 } | 81 } |
81 | 82 |
82 #endif | 83 #endif |
OLD | NEW |