0
Files
src/ui/gl/gl_image_stub.h
Maksim Sisov 87925ec695 Remove not used GLImage::ScheduleOverlayPlane
All implementations of GLImage have this method
empty except CodecImage, which is only used by
tests (seems like they were not removed).
Also cast calls image->ScheduleOverlayPlane, but
there is no real implementation of that as
said above. Currently, overlays are scheduled
via GLSurfaceOverlay.

Thus, GLImage can be cleaned up and this method
can be removed.

Bug: 1257512
Change-Id: I367e3df08420de391d3bcce0562039fd20d80c12
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3205114
Commit-Queue: Maksim Sisov <msisov@igalia.com>
Reviewed-by: Kenneth Russell <kbr@chromium.org>
Reviewed-by: Frank Liberato <liberato@chromium.org>
Reviewed-by: Robert Kroeger <rjkroege@chromium.org>
Reviewed-by: Vasiliy Telezhnikov <vasilyt@chromium.org>
Cr-Commit-Position: refs/heads/main@{#929162}
2021-10-07 13:18:03 +00:00

43 lines
1.2 KiB
C++

// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GL_GL_IMAGE_STUB_H_
#define UI_GL_GL_IMAGE_STUB_H_
#include <stdint.h>
#include "ui/gl/gl_export.h"
#include "ui/gl/gl_image.h"
namespace gl {
// A GLImage that does nothing for unit tests.
class GL_EXPORT GLImageStub : public GLImage {
public:
GLImageStub();
// Overridden from GLImage:
gfx::Size GetSize() override;
unsigned GetInternalFormat() override;
unsigned GetDataType() override;
BindOrCopy ShouldBindOrCopy() override;
bool BindTexImage(unsigned target) override;
void ReleaseTexImage(unsigned target) override {}
bool CopyTexImage(unsigned target) override;
bool CopyTexSubImage(unsigned target,
const gfx::Point& offset,
const gfx::Rect& rect) override;
void Flush() override {}
void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd,
uint64_t process_tracing_id,
const std::string& dump_name) override {}
protected:
~GLImageStub() override;
};
} // namespace gl
#endif // UI_GL_GL_IMAGE_STUB_H_