Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(786)

Side by Side Diff: cc/CCRendererSoftware.h

Issue 10985088: cc: Switch it to use DISALLOW_COPY_AND_ASSIGN macro from base/ library. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/CCRendererGL.h ('k') | cc/CCResourceProvider.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « cc/CCRendererGL.h ('k') | cc/CCResourceProvider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698