Replace skstd::exchange with std::exchange
Change-Id: Id8065e4ff7299c12b1469468dab278b771c0382d
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/286277
Auto-Submit: Adlai Holler <adlai@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
Commit-Queue: Mike Klein <mtklein@google.com>
diff --git a/src/gpu/GrAHardwareBufferImageGenerator.cpp b/src/gpu/GrAHardwareBufferImageGenerator.cpp
index 08e5f52..c5fd646 100644
--- a/src/gpu/GrAHardwareBufferImageGenerator.cpp
+++ b/src/gpu/GrAHardwareBufferImageGenerator.cpp
@@ -20,7 +20,6 @@
#include "include/gpu/GrContext.h"
#include "include/gpu/gl/GrGLTypes.h"
#include "include/private/GrRecordingContext.h"
-#include "src/core/SkExchange.h"
#include "src/core/SkMessageBus.h"
#include "src/gpu/GrAHardwareBufferUtils.h"
#include "src/gpu/GrContextPriv.h"
@@ -126,7 +125,7 @@
~AutoAHBRelease() { fAhb ? AHardwareBuffer_release(fAhb) : void(); }
AutoAHBRelease& operator=(AutoAHBRelease&& that) {
- fAhb = skstd::exchange(that.fAhb, nullptr);
+ fAhb = std::exchange(that.fAhb, nullptr);
return *this;
}
AutoAHBRelease& operator=(const AutoAHBRelease&) = delete;