| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 541 GLenum original_filter; | 541 GLenum original_filter; |
| 542 GLenum filter; | 542 GLenum filter; |
| 543 unsigned image_id; | 543 unsigned image_id; |
| 544 unsigned bound_image_id; | 544 unsigned bound_image_id; |
| 545 TextureHint hint; | 545 TextureHint hint; |
| 546 ResourceType type; | 546 ResourceType type; |
| 547 ResourceFormat format; | 547 ResourceFormat format; |
| 548 SharedBitmapId shared_bitmap_id; | 548 SharedBitmapId shared_bitmap_id; |
| 549 SharedBitmap* shared_bitmap; | 549 SharedBitmap* shared_bitmap; |
| 550 std::unique_ptr<gfx::GpuMemoryBuffer> gpu_memory_buffer; | 550 std::unique_ptr<gfx::GpuMemoryBuffer> gpu_memory_buffer; |
| 551 gfx::GpuMemoryBufferId gpu_memory_buffer_id; | |
| 552 | 551 |
| 553 private: | 552 private: |
| 554 SynchronizationState synchronization_state_ = SYNCHRONIZED; | 553 SynchronizationState synchronization_state_ = SYNCHRONIZED; |
| 555 bool needs_sync_token_ = false; | 554 bool needs_sync_token_ = false; |
| 556 TextureMailbox mailbox_; | 555 TextureMailbox mailbox_; |
| 557 | 556 |
| 558 DISALLOW_COPY_AND_ASSIGN(Resource); | 557 DISALLOW_COPY_AND_ASSIGN(Resource); |
| 559 }; | 558 }; |
| 560 using ResourceMap = std::unordered_map<ResourceId, Resource>; | 559 using ResourceMap = std::unordered_map<ResourceId, Resource>; |
| 561 | 560 |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 660 // A process-unique ID used for disambiguating memory dumps from different | 659 // A process-unique ID used for disambiguating memory dumps from different |
| 661 // resource providers. | 660 // resource providers. |
| 662 int tracing_id_; | 661 int tracing_id_; |
| 663 | 662 |
| 664 DISALLOW_COPY_AND_ASSIGN(ResourceProvider); | 663 DISALLOW_COPY_AND_ASSIGN(ResourceProvider); |
| 665 }; | 664 }; |
| 666 | 665 |
| 667 } // namespace cc | 666 } // namespace cc |
| 668 | 667 |
| 669 #endif // CC_RESOURCES_RESOURCE_PROVIDER_H_ | 668 #endif // CC_RESOURCES_RESOURCE_PROVIDER_H_ |
| OLD | NEW |