Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(801)

Unified Diff: cc/tiles/gpu_image_decode_controller.h

Issue 1869753003: Replace many skia::RefPtr with sk_sp<> in cc/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: cc/tiles/gpu_image_decode_controller.h
diff --git a/cc/tiles/gpu_image_decode_controller.h b/cc/tiles/gpu_image_decode_controller.h
index 10b03e136cccfcdbb802f4386d686f208819e8dd..905aca820044f4b743db6057ffe9d0a6cb202bf1 100644
--- a/cc/tiles/gpu_image_decode_controller.h
+++ b/cc/tiles/gpu_image_decode_controller.h
@@ -16,7 +16,6 @@
#include "cc/base/cc_export.h"
#include "cc/resources/resource_format.h"
#include "cc/tiles/image_decode_controller.h"
-#include "skia/ext/refptr.h"
class SkImageTextureData;
@@ -108,7 +107,7 @@ class CC_EXPORT GpuImageDecodeController : public ImageDecodeController {
~UploadedImageData();
// May be null if image not yet uploaded / prepared.
- skia::RefPtr<SkImage> image;
+ sk_sp<SkImage> image;
// True if the image is counting against our memory limits.
bool budgeted;
uint32_t ref_count;
@@ -165,7 +164,7 @@ class CC_EXPORT GpuImageDecodeController : public ImageDecodeController {
const ResourceFormat format_;
ContextProvider* context_;
- skia::RefPtr<GrContextThreadSafeProxy> context_threadsafe_proxy_;
+ sk_sp<GrContextThreadSafeProxy> context_threadsafe_proxy_;
// All members below this point must only be accessed while holding |lock_|.
base::Lock lock_;
@@ -184,7 +183,7 @@ class CC_EXPORT GpuImageDecodeController : public ImageDecodeController {
// We can't release GPU backed SkImages without holding the context lock,
// so we add them to this list and defer deletion until the next time the lock
// is held.
- std::vector<skia::RefPtr<SkImage>> images_pending_deletion_;
+ std::vector<sk_sp<SkImage>> images_pending_deletion_;
};
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698