| 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 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 DISALLOW_COPY_AND_ASSIGN(ScopedTextureProvider); | 332 DISALLOW_COPY_AND_ASSIGN(ScopedTextureProvider); |
| 333 }; | 333 }; |
| 334 | 334 |
| 335 class CC_EXPORT ScopedSkSurfaceProvider { | 335 class CC_EXPORT ScopedSkSurfaceProvider { |
| 336 public: | 336 public: |
| 337 ScopedSkSurfaceProvider(ContextProvider* context_provider, | 337 ScopedSkSurfaceProvider(ContextProvider* context_provider, |
| 338 ScopedWriteLockGL* resource_lock, | 338 ScopedWriteLockGL* resource_lock, |
| 339 bool use_mailbox, | 339 bool use_mailbox, |
| 340 bool use_distance_field_text, | 340 bool use_distance_field_text, |
| 341 bool can_use_lcd_text, | 341 bool can_use_lcd_text, |
| 342 bool ignore_color_space, | |
| 343 int msaa_sample_count); | 342 int msaa_sample_count); |
| 344 ~ScopedSkSurfaceProvider(); | 343 ~ScopedSkSurfaceProvider(); |
| 345 | 344 |
| 346 SkSurface* sk_surface() { return sk_surface_.get(); } | 345 SkSurface* sk_surface() { return sk_surface_.get(); } |
| 347 | 346 |
| 348 private: | 347 private: |
| 349 ScopedTextureProvider texture_provider_; | 348 ScopedTextureProvider texture_provider_; |
| 350 sk_sp<SkSurface> sk_surface_; | 349 sk_sp<SkSurface> sk_surface_; |
| 351 | 350 |
| 352 DISALLOW_COPY_AND_ASSIGN(ScopedSkSurfaceProvider); | 351 DISALLOW_COPY_AND_ASSIGN(ScopedSkSurfaceProvider); |
| (...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 761 // Set of resource Ids that would like to be notified about promotion hints. | 760 // Set of resource Ids that would like to be notified about promotion hints. |
| 762 ResourceIdSet wants_promotion_hints_set_; | 761 ResourceIdSet wants_promotion_hints_set_; |
| 763 #endif | 762 #endif |
| 764 | 763 |
| 765 DISALLOW_COPY_AND_ASSIGN(ResourceProvider); | 764 DISALLOW_COPY_AND_ASSIGN(ResourceProvider); |
| 766 }; | 765 }; |
| 767 | 766 |
| 768 } // namespace cc | 767 } // namespace cc |
| 769 | 768 |
| 770 #endif // CC_RESOURCES_RESOURCE_PROVIDER_H_ | 769 #endif // CC_RESOURCES_RESOURCE_PROVIDER_H_ |
| OLD | NEW |