| // Copyright 2018 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 GPU_COMMAND_BUFFER_SERVICE_GL_STREAM_TEXTURE_IMAGE_STUB_H_ |
| #define GPU_COMMAND_BUFFER_SERVICE_GL_STREAM_TEXTURE_IMAGE_STUB_H_ |
| |
| #include "gpu/command_buffer/service/gl_stream_texture_image.h" |
| |
| namespace gpu { |
| namespace gles2 { |
| |
| class GLStreamTextureImageStub : public GLStreamTextureImage { |
| public: |
| GLStreamTextureImageStub() = default; |
| |
| // Overridden from GLImage: |
| gfx::Size GetSize() override; |
| unsigned GetInternalFormat() 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; |
| |
| bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, |
| int z_order, |
| gfx::OverlayTransform transform, |
| const gfx::Rect& bounds_rect, |
| const gfx::RectF& crop_rect, |
| bool enable_blend, |
| std::unique_ptr<gfx::GpuFence> gpu_fence) override; |
| |
| void SetColorSpace(const gfx::ColorSpace& color_space) override {} |
| void Flush() override {} |
| void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd, |
| uint64_t process_tracing_id, |
| const std::string& dump_name) override {} |
| bool EmulatingRGB() const override; |
| |
| // Overridden from GLStreamTextureImage: |
| void GetTextureMatrix(float matrix[16]) override {} |
| void NotifyPromotionHint(bool promotion_hint, |
| int display_x, |
| int display_y, |
| int display_width, |
| int display_height) override {} |
| |
| protected: |
| ~GLStreamTextureImageStub() override = default; |
| }; |
| |
| } // namespace gles2 |
| } // namespace gpu |
| |
| #endif // GPU_COMMAND_BUFFER_SERVICE_GL_STREAM_TEXTURE_IMAGE_STUB_H_ |