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

Side by Side Diff: cc/ThrottledTextureUploader.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/TextureCopier.h ('k') | cc/TiledLayerChromium.cpp » ('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 ThrottledTextureUploader_h 5 #ifndef ThrottledTextureUploader_h
6 #define ThrottledTextureUploader_h 6 #define ThrottledTextureUploader_h
7 7
8 #include "TextureUploader.h" 8 #include "TextureUploader.h"
9 9
10 #include "base/basictypes.h"
10 #include <deque> 11 #include <deque>
11 #include <wtf/Deque.h> 12 #include <wtf/Deque.h>
12 13
13 namespace WebKit { 14 namespace WebKit {
14 class WebGraphicsContext3D; 15 class WebGraphicsContext3D;
15 } 16 }
16 17
17 namespace cc { 18 namespace cc {
18 19
19 class ThrottledTextureUploader : public TextureUploader { 20 class ThrottledTextureUploader : public TextureUploader {
20 WTF_MAKE_NONCOPYABLE(ThrottledTextureUploader);
21 public: 21 public:
22 static PassOwnPtr<ThrottledTextureUploader> create(WebKit::WebGraphicsContex t3D* context) 22 static PassOwnPtr<ThrottledTextureUploader> create(WebKit::WebGraphicsContex t3D* context)
23 { 23 {
24 return adoptPtr(new ThrottledTextureUploader(context)); 24 return adoptPtr(new ThrottledTextureUploader(context));
25 } 25 }
26 static PassOwnPtr<ThrottledTextureUploader> create(WebKit::WebGraphicsContex t3D* context, size_t pendingUploadLimit) 26 static PassOwnPtr<ThrottledTextureUploader> create(WebKit::WebGraphicsContex t3D* context, size_t pendingUploadLimit)
27 { 27 {
28 return adoptPtr(new ThrottledTextureUploader(context, pendingUploadLimit )); 28 return adoptPtr(new ThrottledTextureUploader(context, pendingUploadLimit ));
29 } 29 }
30 virtual ~ThrottledTextureUploader(); 30 virtual ~ThrottledTextureUploader();
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 ThrottledTextureUploader(WebKit::WebGraphicsContext3D*, size_t pendingUpload Limit); 63 ThrottledTextureUploader(WebKit::WebGraphicsContext3D*, size_t pendingUpload Limit);
64 64
65 void processQueries(); 65 void processQueries();
66 66
67 WebKit::WebGraphicsContext3D* m_context; 67 WebKit::WebGraphicsContext3D* m_context;
68 size_t m_maxPendingQueries; 68 size_t m_maxPendingQueries;
69 Deque<OwnPtr<Query> > m_pendingQueries; 69 Deque<OwnPtr<Query> > m_pendingQueries;
70 Deque<OwnPtr<Query> > m_availableQueries; 70 Deque<OwnPtr<Query> > m_availableQueries;
71 std::deque<double> m_texturesPerSecondHistory; 71 std::deque<double> m_texturesPerSecondHistory;
72 double m_texturesUploaded; 72 double m_texturesUploaded;
73
74 DISALLOW_COPY_AND_ASSIGN(ThrottledTextureUploader);
73 }; 75 };
74 76
75 } 77 }
76 78
77 #endif 79 #endif
OLDNEW
« no previous file with comments | « cc/TextureCopier.h ('k') | cc/TiledLayerChromium.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698