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

Side by Side Diff: cc/resource_provider.h

Issue 11622008: cc: Defer texture allocation (to allow async allocations). (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years 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
« no previous file with comments | « no previous file | cc/resource_provider.cc » ('j') | cc/resource_provider.cc » ('J')
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 CC_RESOURCE_PROVIDER_H_ 5 #ifndef CC_RESOURCE_PROVIDER_H_
6 #define CC_RESOURCE_PROVIDER_H_ 6 #define CC_RESOURCE_PROVIDER_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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 unsigned glUploadQueryId; 243 unsigned glUploadQueryId;
244 Mailbox mailbox; 244 Mailbox mailbox;
245 uint8_t* pixels; 245 uint8_t* pixels;
246 uint8_t* pixelBuffer; 246 uint8_t* pixelBuffer;
247 int lockForReadCount; 247 int lockForReadCount;
248 bool lockedForWrite; 248 bool lockedForWrite;
249 bool external; 249 bool external;
250 bool exported; 250 bool exported;
251 bool markedForDeletion; 251 bool markedForDeletion;
252 bool pendingSetPixels; 252 bool pendingSetPixels;
253 bool allocated;
253 gfx::Size size; 254 gfx::Size size;
254 GLenum format; 255 GLenum format;
255 // TODO(skyostil): Use a separate sampler object for filter state. 256 // TODO(skyostil): Use a separate sampler object for filter state.
256 GLenum filter; 257 GLenum filter;
257 ResourceType type; 258 ResourceType type;
258 }; 259 };
259 typedef base::hash_map<ResourceId, Resource> ResourceMap; 260 typedef base::hash_map<ResourceId, Resource> ResourceMap;
260 struct Child { 261 struct Child {
261 Child(); 262 Child();
262 ~Child(); 263 ~Child();
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 GLenum m_bestTextureFormat; 295 GLenum m_bestTextureFormat;
295 296
296 base::ThreadChecker m_threadChecker; 297 base::ThreadChecker m_threadChecker;
297 298
298 DISALLOW_COPY_AND_ASSIGN(ResourceProvider); 299 DISALLOW_COPY_AND_ASSIGN(ResourceProvider);
299 }; 300 };
300 301
301 } 302 }
302 303
303 #endif // CC_RESOURCE_PROVIDER_H_ 304 #endif // CC_RESOURCE_PROVIDER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/resource_provider.cc » ('j') | cc/resource_provider.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698