Chromium Code Reviews| 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 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 346 public: | 346 public: |
| 347 ScopedSkSurfaceProvider(ContextProvider* context_provider, | 347 ScopedSkSurfaceProvider(ContextProvider* context_provider, |
| 348 ScopedWriteLockGL* resource_lock, | 348 ScopedWriteLockGL* resource_lock, |
| 349 bool use_mailbox, | 349 bool use_mailbox, |
| 350 bool use_distance_field_text, | 350 bool use_distance_field_text, |
| 351 bool can_use_lcd_text, | 351 bool can_use_lcd_text, |
| 352 int msaa_sample_count); | 352 int msaa_sample_count); |
| 353 ~ScopedSkSurfaceProvider(); | 353 ~ScopedSkSurfaceProvider(); |
| 354 | 354 |
| 355 SkSurface* sk_surface() { return sk_surface_.get(); } | 355 SkSurface* sk_surface() { return sk_surface_.get(); } |
| 356 sk_sp<SkSurface> sk_sp_surface() { return sk_surface_; } | |
|
danakj
2017/05/01 22:57:33
I dont think u need this
sohan
2017/05/03 11:06:35
Done.
| |
| 356 | 357 |
| 357 private: | 358 private: |
| 358 ScopedTextureProvider texture_provider_; | 359 ScopedTextureProvider texture_provider_; |
| 359 sk_sp<SkSurface> sk_surface_; | 360 sk_sp<SkSurface> sk_surface_; |
| 360 | 361 |
| 361 DISALLOW_COPY_AND_ASSIGN(ScopedSkSurfaceProvider); | 362 DISALLOW_COPY_AND_ASSIGN(ScopedSkSurfaceProvider); |
| 362 }; | 363 }; |
| 363 | 364 |
| 364 class CC_EXPORT ScopedReadLockSoftware { | 365 class CC_EXPORT ScopedReadLockSoftware { |
| 365 public: | 366 public: |
| (...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 812 // Set of resource Ids that would like to be notified about promotion hints. | 813 // Set of resource Ids that would like to be notified about promotion hints. |
| 813 ResourceIdSet wants_promotion_hints_set_; | 814 ResourceIdSet wants_promotion_hints_set_; |
| 814 #endif | 815 #endif |
| 815 | 816 |
| 816 DISALLOW_COPY_AND_ASSIGN(ResourceProvider); | 817 DISALLOW_COPY_AND_ASSIGN(ResourceProvider); |
| 817 }; | 818 }; |
| 818 | 819 |
| 819 } // namespace cc | 820 } // namespace cc |
| 820 | 821 |
| 821 #endif // CC_RESOURCES_RESOURCE_PROVIDER_H_ | 822 #endif // CC_RESOURCES_RESOURCE_PROVIDER_H_ |
| OLD | NEW |