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

Side by Side Diff: cc/resource_provider.h

Issue 11367054: cc: Move textureUploadFlushPeriod to TextureUploader. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 | « no previous file | cc/resource_provider.cc » ('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 CCResourceProvider_h 5 #ifndef CCResourceProvider_h
6 #define CCResourceProvider_h 6 #define CCResourceProvider_h
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/hash_tables.h" 9 #include "base/hash_tables.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 // Deletes all resources owned by a given pool. 95 // Deletes all resources owned by a given pool.
96 void deleteOwnedResources(int pool); 96 void deleteOwnedResources(int pool);
97 97
98 // Upload data from image, copying sourceRect (in image) into destRect (in t he resource). 98 // Upload data from image, copying sourceRect (in image) into destRect (in t he resource).
99 void upload(ResourceId, const uint8_t* image, const gfx::Rect& imageRect, co nst gfx::Rect& sourceRect, const gfx::Vector2d& destOffset); 99 void upload(ResourceId, const uint8_t* image, const gfx::Rect& imageRect, co nst gfx::Rect& sourceRect, const gfx::Vector2d& destOffset);
100 100
101 // Check upload status. 101 // Check upload status.
102 size_t numBlockingUploads(); 102 size_t numBlockingUploads();
103 void markPendingUploadsAsNonBlocking(); 103 void markPendingUploadsAsNonBlocking();
104 double estimatedUploadsPerSecond(); 104 double estimatedUploadsPerSecond();
105 void flushUploads();
105 106
106 // Flush all context operations, kicking uploads and ensuring ordering with 107 // Flush all context operations, kicking uploads and ensuring ordering with
107 // respect to other contexts. 108 // respect to other contexts.
108 void flush(); 109 void flush();
109 110
110 // Only flush the command buffer if supported. 111 // Only flush the command buffer if supported.
111 // Returns true if the shallow flush occurred, false otherwise. 112 // Returns true if the shallow flush occurred, false otherwise.
112 bool shallowFlushIfSupported(); 113 bool shallowFlushIfSupported();
113 114
114 // Creates accounting for a child, and associate it with a pool. Resources 115 // Creates accounting for a child, and associate it with a pool. Resources
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 scoped_ptr<TextureUploader> m_textureUploader; 278 scoped_ptr<TextureUploader> m_textureUploader;
278 scoped_ptr<AcceleratedTextureCopier> m_textureCopier; 279 scoped_ptr<AcceleratedTextureCopier> m_textureCopier;
279 int m_maxTextureSize; 280 int m_maxTextureSize;
280 281
281 DISALLOW_COPY_AND_ASSIGN(ResourceProvider); 282 DISALLOW_COPY_AND_ASSIGN(ResourceProvider);
282 }; 283 };
283 284
284 } 285 }
285 286
286 #endif 287 #endif
OLDNEW
« no previous file with comments | « no previous file | cc/resource_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698