Skip to content

Commit a6e0424

Browse files
committed
chore(core): cut the comments the grading fix added
1 parent 217ce51 commit a6e0424

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

‎packages/core/src/runtime/colorGrading.ts‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,6 @@ type LutCacheEntry =
320320
const LUT_CACHE = new Map<string, LutCacheEntry>();
321321
const COLOR_GRADING_CANVAS_ATTR = "data-hf-color-grading-canvas";
322322
const COLOR_GRADING_CANVAS_CLASS = "__hf_color_grading_canvas__";
323-
// A WebGL drawing buffer past these limits is silently clamped by the GPU, and what it draws is blank.
324323
const MAX_GRADING_CANVAS_PIXELS = 1 << 24;
325324
const MAX_GRADING_CANVAS_SIDE = 8192;
326325

@@ -2903,8 +2902,6 @@ function resolvedLayoutSize(primary: number, fallback: number): number {
29032902
return Math.max(0, Math.round(primary > 0 ? primary : fallback));
29042903
}
29052904

2906-
/** The pixel size to draw a clip at: its own, or smaller in the same shape when the GPU could not draw it, as for a
2907-
* clip zoomed far past the screen. */
29082905
function fitToGpuLimits(width: number, height: number): { width: number; height: number } {
29092906
const scale = Math.min(
29102907
1,
@@ -3789,8 +3786,6 @@ function installEntryListeners(entry: ColorGradingEntry): void {
37893786
const redraw = () => {
37903787
drawEntry(entry);
37913788
};
3792-
// A video says it has data before the GPU can upload it, so this draw can sample nothing; the draw once the
3793-
// frame is presented is the one that holds the picture.
37943789
const redrawOnPresentedFrame = () => {
37953790
drawEntry(entry);
37963791
scheduleVideoDraw(entry);

0 commit comments

Comments
 (0)