🎨 lint fix
This commit is contained in:
parent
7bf17f2541
commit
2610aa60e9
1 changed files with 2 additions and 3 deletions
|
@ -41,9 +41,8 @@ bool Subscriber::ShouldCaptureFrame(
|
||||||
DeliverFrameCallback* callback) {
|
DeliverFrameCallback* callback) {
|
||||||
const auto view = frame_subscriber_->view_;
|
const auto view = frame_subscriber_->view_;
|
||||||
const auto host = view ? view->GetRenderWidgetHost() : nullptr;
|
const auto host = view ? view->GetRenderWidgetHost() : nullptr;
|
||||||
if (!view || !host) {
|
if (!view || !host)
|
||||||
return false;
|
return false;
|
||||||
}
|
|
||||||
|
|
||||||
const gfx::Size view_size = view->GetViewBounds().size();
|
const gfx::Size view_size = view->GetViewBounds().size();
|
||||||
|
|
||||||
|
@ -82,7 +81,7 @@ bool FrameSubscriber::RequestDestruct() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void FrameSubscriber::OnFrameDelivered(const FrameCaptureCallback& callback,
|
void FrameSubscriber::OnFrameDelivered(const FrameCaptureCallback& callback,
|
||||||
const SkBitmap& bitmap, content::ReadbackResponse response){
|
const SkBitmap& bitmap, content::ReadbackResponse response) {
|
||||||
pending_frames--;
|
pending_frames--;
|
||||||
|
|
||||||
if (RequestDestruct() || subscriber_ == NULL || bitmap.computeSize64() == 0)
|
if (RequestDestruct() || subscriber_ == NULL || bitmap.computeSize64() == 0)
|
||||||
|
|
Loading…
Reference in a new issue