| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |