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

Side by Side Diff: cc/resources/resource_provider.h

Issue 69343011: cc: Rationalize sync points and lost status for returned resources (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | « cc/layers/texture_layer_unittest.cc ('k') | cc/resources/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 CC_RESOURCES_RESOURCE_PROVIDER_H_ 5 #ifndef CC_RESOURCES_RESOURCE_PROVIDER_H_
6 #define CC_RESOURCES_RESOURCE_PROVIDER_H_ 6 #define CC_RESOURCES_RESOURCE_PROVIDER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 int lock_for_read_count; 385 int lock_for_read_count;
386 int imported_count; 386 int imported_count;
387 int exported_count; 387 int exported_count;
388 bool locked_for_write; 388 bool locked_for_write;
389 bool external; 389 bool external;
390 bool marked_for_deletion; 390 bool marked_for_deletion;
391 bool pending_set_pixels; 391 bool pending_set_pixels;
392 bool set_pixels_completion_forced; 392 bool set_pixels_completion_forced;
393 bool allocated; 393 bool allocated;
394 bool enable_read_lock_fences; 394 bool enable_read_lock_fences;
395 bool sync_point_is_from_client;
395 scoped_refptr<Fence> read_lock_fence; 396 scoped_refptr<Fence> read_lock_fence;
396 gfx::Size size; 397 gfx::Size size;
397 GLenum target; 398 GLenum target;
398 // TODO(skyostil): Use a separate sampler object for filter state. 399 // TODO(skyostil): Use a separate sampler object for filter state.
399 GLenum original_filter; 400 GLenum original_filter;
400 GLenum filter; 401 GLenum filter;
401 unsigned image_id; 402 unsigned image_id;
402 unsigned bound_image_id; 403 unsigned bound_image_id;
403 bool dirty_image; 404 bool dirty_image;
404 GLenum texture_pool; 405 GLenum texture_pool;
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 return format_gl_data_format[format]; 547 return format_gl_data_format[format];
547 } 548 }
548 549
549 inline GLenum GLInternalFormat(ResourceFormat format) { 550 inline GLenum GLInternalFormat(ResourceFormat format) {
550 return GLDataFormat(format); 551 return GLDataFormat(format);
551 } 552 }
552 553
553 } // namespace cc 554 } // namespace cc
554 555
555 #endif // CC_RESOURCES_RESOURCE_PROVIDER_H_ 556 #endif // CC_RESOURCES_RESOURCE_PROVIDER_H_
OLDNEW
« no previous file with comments | « cc/layers/texture_layer_unittest.cc ('k') | cc/resources/resource_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698