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

Side by Side Diff: cc/CCTiledLayerImpl.cpp

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/CCThread.h ('k') | cc/CCYUVVideoDrawQuad.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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 #include "config.h" 5 #include "config.h"
6 6
7 #if USE(ACCELERATED_COMPOSITING) 7 #if USE(ACCELERATED_COMPOSITING)
8 8
9 #include "CCTiledLayerImpl.h" 9 #include "CCTiledLayerImpl.h"
10 10
11 #include "base/basictypes.h"
11 #include "base/stringprintf.h" 12 #include "base/stringprintf.h"
12 #include "CCAppendQuadsData.h" 13 #include "CCAppendQuadsData.h"
13 #include "CCCheckerboardDrawQuad.h" 14 #include "CCCheckerboardDrawQuad.h"
14 #include "CCDebugBorderDrawQuad.h" 15 #include "CCDebugBorderDrawQuad.h"
15 #include "CCLayerTilingData.h" 16 #include "CCLayerTilingData.h"
16 #include "CCMathUtil.h" 17 #include "CCMathUtil.h"
17 #include "CCQuadSink.h" 18 #include "CCQuadSink.h"
18 #include "CCSolidColorDrawQuad.h" 19 #include "CCSolidColorDrawQuad.h"
19 #include "CCTileDrawQuad.h" 20 #include "CCTileDrawQuad.h"
20 #include "FloatQuad.h" 21 #include "FloatQuad.h"
21 #include "GraphicsContext3D.h" 22 #include "GraphicsContext3D.h"
22 #include "SkColor.h" 23 #include "SkColor.h"
23 24
24 using namespace std; 25 using namespace std;
25 using WebKit::WebTransformationMatrix; 26 using WebKit::WebTransformationMatrix;
26 27
27 namespace cc { 28 namespace cc {
28 29
29 static const int debugTileBorderWidth = 1; 30 static const int debugTileBorderWidth = 1;
30 static const int debugTileBorderAlpha = 100; 31 static const int debugTileBorderAlpha = 100;
31 static const int debugTileBorderColorRed = 80; 32 static const int debugTileBorderColorRed = 80;
32 static const int debugTileBorderColorGreen = 200; 33 static const int debugTileBorderColorGreen = 200;
33 static const int debugTileBorderColorBlue = 200; 34 static const int debugTileBorderColorBlue = 200;
34 static const int debugTileBorderMissingTileColorRed = 255; 35 static const int debugTileBorderMissingTileColorRed = 255;
35 static const int debugTileBorderMissingTileColorGreen = 0; 36 static const int debugTileBorderMissingTileColorGreen = 0;
36 static const int debugTileBorderMissingTileColorBlue = 0; 37 static const int debugTileBorderMissingTileColorBlue = 0;
37 38
38 class DrawableTile : public CCLayerTilingData::Tile { 39 class DrawableTile : public CCLayerTilingData::Tile {
39 WTF_MAKE_NONCOPYABLE(DrawableTile);
40 public: 40 public:
41 static PassOwnPtr<DrawableTile> create() { return adoptPtr(new DrawableTile( )); } 41 static PassOwnPtr<DrawableTile> create() { return adoptPtr(new DrawableTile( )); }
42 42
43 CCResourceProvider::ResourceId resourceId() const { return m_resourceId; } 43 CCResourceProvider::ResourceId resourceId() const { return m_resourceId; }
44 void setResourceId(CCResourceProvider::ResourceId resourceId) { m_resourceId = resourceId; } 44 void setResourceId(CCResourceProvider::ResourceId resourceId) { m_resourceId = resourceId; }
45 45
46 private: 46 private:
47 DrawableTile() : m_resourceId(0) { } 47 DrawableTile() : m_resourceId(0) { }
48 48
49 CCResourceProvider::ResourceId m_resourceId; 49 CCResourceProvider::ResourceId m_resourceId;
50
51 DISALLOW_COPY_AND_ASSIGN(DrawableTile);
50 }; 52 };
51 53
52 CCTiledLayerImpl::CCTiledLayerImpl(int id) 54 CCTiledLayerImpl::CCTiledLayerImpl(int id)
53 : CCLayerImpl(id) 55 : CCLayerImpl(id)
54 , m_skipsDraw(true) 56 , m_skipsDraw(true)
55 , m_contentsSwizzled(false) 57 , m_contentsSwizzled(false)
56 { 58 {
57 } 59 }
58 60
59 CCTiledLayerImpl::~CCTiledLayerImpl() 61 CCTiledLayerImpl::~CCTiledLayerImpl()
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 } 215 }
214 216
215 const char* CCTiledLayerImpl::layerTypeAsString() const 217 const char* CCTiledLayerImpl::layerTypeAsString() const
216 { 218 {
217 return "ContentLayer"; 219 return "ContentLayer";
218 } 220 }
219 221
220 } // namespace cc 222 } // namespace cc
221 223
222 #endif // USE(ACCELERATED_COMPOSITING) 224 #endif // USE(ACCELERATED_COMPOSITING)
OLDNEW
« no previous file with comments | « cc/CCThread.h ('k') | cc/CCYUVVideoDrawQuad.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698