| 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 "CCDirectRenderer.h" | 9 #include "CCDirectRenderer.h" |
| 9 #include "CCLayerTreeHost.h" | 10 #include "CCLayerTreeHost.h" |
| 10 #include <public/WebCompositorSoftwareOutputDevice.h> | 11 #include <public/WebCompositorSoftwareOutputDevice.h> |
| 11 | 12 |
| 12 namespace cc { | 13 namespace cc { |
| 13 | 14 |
| 14 class CCDebugBorderDrawQuad; | 15 class CCDebugBorderDrawQuad; |
| 15 class CCRendererClient; | 16 class CCRendererClient; |
| 16 class CCResourceProvider; | 17 class CCResourceProvider; |
| 17 class CCSolidColorDrawQuad; | 18 class CCSolidColorDrawQuad; |
| 18 class CCTextureDrawQuad; | 19 class CCTextureDrawQuad; |
| 19 class CCTileDrawQuad; | 20 class CCTileDrawQuad; |
| 20 | 21 |
| 21 class CCRendererSoftware : public CCDirectRenderer { | 22 class CCRendererSoftware : public CCDirectRenderer { |
| 22 WTF_MAKE_NONCOPYABLE(CCRendererSoftware); | |
| 23 public: | 23 public: |
| 24 static PassOwnPtr<CCRendererSoftware> create(CCRendererClient*, CCResourcePr
ovider*, WebKit::WebCompositorSoftwareOutputDevice*); | 24 static PassOwnPtr<CCRendererSoftware> create(CCRendererClient*, CCResourcePr
ovider*, WebKit::WebCompositorSoftwareOutputDevice*); |
| 25 virtual ~CCRendererSoftware(); | 25 virtual ~CCRendererSoftware(); |
| 26 | 26 |
| 27 virtual const RendererCapabilities& capabilities() const OVERRIDE; | 27 virtual const RendererCapabilities& capabilities() const OVERRIDE; |
| 28 | 28 |
| 29 virtual void viewportChanged() OVERRIDE; | 29 virtual void viewportChanged() OVERRIDE; |
| 30 | 30 |
| 31 virtual void finish() OVERRIDE; | 31 virtual void finish() OVERRIDE; |
| 32 | 32 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 60 void drawUnsupportedQuad(const DrawingFrame&, const CCDrawQuad*); | 60 void drawUnsupportedQuad(const DrawingFrame&, const CCDrawQuad*); |
| 61 | 61 |
| 62 RendererCapabilities m_capabilities; | 62 RendererCapabilities m_capabilities; |
| 63 bool m_visible; | 63 bool m_visible; |
| 64 | 64 |
| 65 WebKit::WebCompositorSoftwareOutputDevice* m_outputDevice; | 65 WebKit::WebCompositorSoftwareOutputDevice* m_outputDevice; |
| 66 OwnPtr<SkCanvas> m_skRootCanvas; | 66 OwnPtr<SkCanvas> m_skRootCanvas; |
| 67 SkCanvas* m_skCurrentCanvas; | 67 SkCanvas* m_skCurrentCanvas; |
| 68 SkPaint m_skCurrentPaint; | 68 SkPaint m_skCurrentPaint; |
| 69 OwnPtr<CCResourceProvider::ScopedWriteLockSoftware> m_currentFramebufferLock
; | 69 OwnPtr<CCResourceProvider::ScopedWriteLockSoftware> m_currentFramebufferLock
; |
| 70 |
| 71 DISALLOW_COPY_AND_ASSIGN(CCRendererSoftware); |
| 70 }; | 72 }; |
| 71 | 73 |
| 72 } | 74 } |
| 73 | 75 |
| 74 #endif | 76 #endif |
| OLD | NEW |