| 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 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 | 350 |
| 351 void UpdateResourceSyncToken(const gpu::SyncToken& sync_token) { | 351 void UpdateResourceSyncToken(const gpu::SyncToken& sync_token) { |
| 352 set_sync_token_ = true; | 352 set_sync_token_ = true; |
| 353 sync_token_ = sync_token; | 353 sync_token_ = sync_token; |
| 354 } | 354 } |
| 355 | 355 |
| 356 private: | 356 private: |
| 357 ResourceProvider* resource_provider_; | 357 ResourceProvider* resource_provider_; |
| 358 ResourceProvider::Resource* resource_; | 358 ResourceProvider::Resource* resource_; |
| 359 base::ThreadChecker thread_checker_; | 359 base::ThreadChecker thread_checker_; |
| 360 skia::RefPtr<SkSurface> sk_surface_; | 360 sk_sp<SkSurface> sk_surface_; |
| 361 bool set_sync_token_; | 361 bool set_sync_token_; |
| 362 gpu::SyncToken sync_token_; | 362 gpu::SyncToken sync_token_; |
| 363 | 363 |
| 364 DISALLOW_COPY_AND_ASSIGN(ScopedWriteLockGr); | 364 DISALLOW_COPY_AND_ASSIGN(ScopedWriteLockGr); |
| 365 }; | 365 }; |
| 366 | 366 |
| 367 class Fence : public base::RefCounted<Fence> { | 367 class Fence : public base::RefCounted<Fence> { |
| 368 public: | 368 public: |
| 369 Fence() {} | 369 Fence() {} |
| 370 | 370 |
| (...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 678 // A process-unique ID used for disambiguating memory dumps from different | 678 // A process-unique ID used for disambiguating memory dumps from different |
| 679 // resource providers. | 679 // resource providers. |
| 680 int tracing_id_; | 680 int tracing_id_; |
| 681 | 681 |
| 682 DISALLOW_COPY_AND_ASSIGN(ResourceProvider); | 682 DISALLOW_COPY_AND_ASSIGN(ResourceProvider); |
| 683 }; | 683 }; |
| 684 | 684 |
| 685 } // namespace cc | 685 } // namespace cc |
| 686 | 686 |
| 687 #endif // CC_RESOURCES_RESOURCE_PROVIDER_H_ | 687 #endif // CC_RESOURCES_RESOURCE_PROVIDER_H_ |
| OLD | NEW |