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

Side by Side Diff: cc/ContentLayerChromium.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/CCYUVVideoDrawQuad.h ('k') | cc/RenderSurfaceChromium.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 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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 5
6 #ifndef ContentLayerChromium_h 6 #ifndef ContentLayerChromium_h
7 #define ContentLayerChromium_h 7 #define ContentLayerChromium_h
8 8
9 #if USE(ACCELERATED_COMPOSITING) 9 #if USE(ACCELERATED_COMPOSITING)
10 10
11 #include "base/basictypes.h"
11 #include "LayerPainterChromium.h" 12 #include "LayerPainterChromium.h"
12 #include "TiledLayerChromium.h" 13 #include "TiledLayerChromium.h"
13 14
14 class SkCanvas; 15 class SkCanvas;
15 16
16 namespace cc { 17 namespace cc {
17 18
18 class ContentLayerChromiumClient; 19 class ContentLayerChromiumClient;
19 class FloatRect; 20 class FloatRect;
20 class IntRect; 21 class IntRect;
21 class LayerTextureUpdater; 22 class LayerTextureUpdater;
22 23
23 class ContentLayerPainter : public LayerPainterChromium { 24 class ContentLayerPainter : public LayerPainterChromium {
24 WTF_MAKE_NONCOPYABLE(ContentLayerPainter);
25 public: 25 public:
26 static PassOwnPtr<ContentLayerPainter> create(ContentLayerChromiumClient*); 26 static PassOwnPtr<ContentLayerPainter> create(ContentLayerChromiumClient*);
27 27
28 virtual void paint(SkCanvas*, const IntRect& contentRect, FloatRect& opaque) OVERRIDE; 28 virtual void paint(SkCanvas*, const IntRect& contentRect, FloatRect& opaque) OVERRIDE;
29 29
30 private: 30 private:
31 explicit ContentLayerPainter(ContentLayerChromiumClient*); 31 explicit ContentLayerPainter(ContentLayerChromiumClient*);
32 32
33 ContentLayerChromiumClient* m_client; 33 ContentLayerChromiumClient* m_client;
34
35 DISALLOW_COPY_AND_ASSIGN(ContentLayerPainter);
34 }; 36 };
35 37
36 // A layer that renders its contents into an SkCanvas. 38 // A layer that renders its contents into an SkCanvas.
37 class ContentLayerChromium : public TiledLayerChromium { 39 class ContentLayerChromium : public TiledLayerChromium {
38 public: 40 public:
39 static PassRefPtr<ContentLayerChromium> create(ContentLayerChromiumClient*); 41 static PassRefPtr<ContentLayerChromium> create(ContentLayerChromiumClient*);
40 42
41 virtual ~ContentLayerChromium(); 43 virtual ~ContentLayerChromium();
42 44
43 void clearClient() { m_client = 0; } 45 void clearClient() { m_client = 0; }
(...skipping 14 matching lines...) Expand all
58 virtual void createTextureUpdaterIfNeeded() OVERRIDE; 60 virtual void createTextureUpdaterIfNeeded() OVERRIDE;
59 61
60 ContentLayerChromiumClient* m_client; 62 ContentLayerChromiumClient* m_client;
61 RefPtr<LayerTextureUpdater> m_textureUpdater; 63 RefPtr<LayerTextureUpdater> m_textureUpdater;
62 }; 64 };
63 65
64 } 66 }
65 #endif // USE(ACCELERATED_COMPOSITING) 67 #endif // USE(ACCELERATED_COMPOSITING)
66 68
67 #endif 69 #endif
OLDNEW
« no previous file with comments | « cc/CCYUVVideoDrawQuad.h ('k') | cc/RenderSurfaceChromium.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698