forked from CinemaMod/java-cef
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathCefAcceleratedPaintInfo.java
More file actions
35 lines (29 loc) · 939 Bytes
/
CefAcceleratedPaintInfo.java
File metadata and controls
35 lines (29 loc) · 939 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// 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.handler;
/**
* Base structure representing accelerated paint info. Platform-specific
* details are provided by subclasses.
*/
public class CefAcceleratedPaintInfo implements Cloneable {
/**
* Format of the shared texture.
*/
public int format = 0;
/**
* Size information for the shared texture.
*/
public int width = 0;
public int height = 0;
public CefAcceleratedPaintInfo() {}
protected CefAcceleratedPaintInfo(int format, int width, int height) {
this.format = format;
this.width = width;
this.height = height;
}
@Override
public CefAcceleratedPaintInfo clone() {
return new CefAcceleratedPaintInfo(format, width, height);
}
}