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:
		
					parent
					
						
							
								99b4aac979
							
						
					
				
			
			
				commit
				
					
						3f40e93ba7
					
				
			
		
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -82,7 +82,7 @@ void FrameSubscriber::Done(const gfx::Rect& damage, const SkBitmap& frame) {
 | 
				
			||||||
                                       : frame;
 | 
					                                       : frame;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  size_t rgb_row_size = bitmap.width() * bitmap.bytesPerPixel();
 | 
					  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 =
 | 
					  v8::MaybeLocal<v8::Object> buffer =
 | 
				
			||||||
      node::Buffer::Copy(isolate_, source, rgb_row_size * bitmap.height());
 | 
					      node::Buffer::Copy(isolate_, source, rgb_row_size * bitmap.height());
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -28,7 +28,7 @@ class FrameSubscriber : public content::WebContentsObserver {
 | 
				
			||||||
                  content::WebContents* web_contents,
 | 
					                  content::WebContents* web_contents,
 | 
				
			||||||
                  const FrameCaptureCallback& callback,
 | 
					                  const FrameCaptureCallback& callback,
 | 
				
			||||||
                  bool only_dirty);
 | 
					                  bool only_dirty);
 | 
				
			||||||
  ~FrameSubscriber();
 | 
					  ~FrameSubscriber() override;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 private:
 | 
					 private:
 | 
				
			||||||
  gfx::Rect GetDamageRect();
 | 
					  gfx::Rect GetDamageRect();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue