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 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
601 SharedBitmapManager* shared_bitmap_manager_; | 601 SharedBitmapManager* shared_bitmap_manager_; |
602 bool lost_output_surface_; | 602 bool lost_output_surface_; |
603 int highp_threshold_min_; | 603 int highp_threshold_min_; |
604 ResourceId next_id_; | 604 ResourceId next_id_; |
605 ResourceMap resources_; | 605 ResourceMap resources_; |
606 int next_child_; | 606 int next_child_; |
607 ChildMap children_; | 607 ChildMap children_; |
608 | 608 |
609 ResourceType default_resource_type_; | 609 ResourceType default_resource_type_; |
610 bool use_texture_storage_ext_; | 610 bool use_texture_storage_ext_; |
| 611 bool use_texture_format_bgra_; |
611 bool use_texture_usage_hint_; | 612 bool use_texture_usage_hint_; |
612 bool use_compressed_texture_etc1_; | 613 bool use_compressed_texture_etc1_; |
613 scoped_ptr<TextureUploader> texture_uploader_; | 614 scoped_ptr<TextureUploader> texture_uploader_; |
614 int max_texture_size_; | 615 int max_texture_size_; |
615 ResourceFormat best_texture_format_; | 616 ResourceFormat best_texture_format_; |
616 | 617 |
617 base::ThreadChecker thread_checker_; | 618 base::ThreadChecker thread_checker_; |
618 | 619 |
619 scoped_refptr<Fence> current_read_lock_fence_; | 620 scoped_refptr<Fence> current_read_lock_fence_; |
620 bool use_rgba_4444_texture_format_; | 621 bool use_rgba_4444_texture_format_; |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
675 return format_gl_data_format[format]; | 676 return format_gl_data_format[format]; |
676 } | 677 } |
677 | 678 |
678 inline GLenum GLInternalFormat(ResourceFormat format) { | 679 inline GLenum GLInternalFormat(ResourceFormat format) { |
679 return GLDataFormat(format); | 680 return GLDataFormat(format); |
680 } | 681 } |
681 | 682 |
682 } // namespace cc | 683 } // namespace cc |
683 | 684 |
684 #endif // CC_RESOURCES_RESOURCE_PROVIDER_H_ | 685 #endif // CC_RESOURCES_RESOURCE_PROVIDER_H_ |
OLD | NEW |