chore: fix chromium-style errors in frame_subscriber

The chromium-style linter we run in the GN build was throwing errors
about these issues.
This commit is contained in:
Jeremy Apthorp 2018-06-20 12:51:36 -07:00
parent 99b4aac979
commit 3f40e93ba7
2 changed files with 2 additions and 2 deletions

View file

@ -82,7 +82,7 @@ void FrameSubscriber::Done(const gfx::Rect& damage, const SkBitmap& frame) {
: frame;
size_t rgb_row_size = bitmap.width() * bitmap.bytesPerPixel();
auto source = static_cast<const char*>(bitmap.getPixels());
auto* source = static_cast<const char*>(bitmap.getPixels());
v8::MaybeLocal<v8::Object> buffer =
node::Buffer::Copy(isolate_, source, rgb_row_size * bitmap.height());

View file

@ -28,7 +28,7 @@ class FrameSubscriber : public content::WebContentsObserver {
content::WebContents* web_contents,
const FrameCaptureCallback& callback,
bool only_dirty);
~FrameSubscriber();
~FrameSubscriber() override;
private:
gfx::Rect GetDamageRect();