forked from chromiumembedded/java-cef
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add rendered image callback for CefBrowserOsr/CefRenderer (fixes chro…
- Loading branch information
1 parent
566dc4e
commit ade64c3
Showing
5 changed files
with
106 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
// Copyright (c) 2024 The Chromium Embedded Framework Authors. All rights | ||
// reserved. Use of this source code is governed by a BSD-style license that | ||
// can be found in the LICENSE file. | ||
|
||
package org.cef.browser; | ||
|
||
import java.awt.*; | ||
import java.nio.ByteBuffer; | ||
|
||
public class CefPaintEvent { | ||
private final CefBrowser browser; | ||
private final boolean popup; | ||
private final Rectangle[] dirtyRects; | ||
private final ByteBuffer renderedFrame; | ||
private final int width; | ||
private final int height; | ||
|
||
public CefPaintEvent(CefBrowser browser, boolean popup, Rectangle[] dirtyRects, | ||
ByteBuffer renderedFrame, int width, int height) { | ||
this.browser = browser; | ||
this.popup = popup; | ||
this.dirtyRects = dirtyRects; | ||
this.renderedFrame = renderedFrame; | ||
this.width = width; | ||
this.height = height; | ||
} | ||
|
||
public CefBrowser getBrowser() { | ||
return browser; | ||
} | ||
|
||
public boolean getPopup() { | ||
return popup; | ||
} | ||
|
||
public Rectangle[] getDirtyRects() { | ||
return dirtyRects; | ||
} | ||
|
||
public ByteBuffer getRenderedFrame() { | ||
return renderedFrame; | ||
} | ||
|
||
public int getWidth() { | ||
return width; | ||
} | ||
|
||
public int getHeight() { | ||
return height; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters