Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(323)

Unified Diff: ui/gl/gl_surface_stub.h

Issue 1583283004: Ensure alpha channel in backbuffer is correct with DirectComposition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gl/gl_surface_egl.cc ('k') | ui/gl/gl_surface_stub.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_surface_stub.h
diff --git a/ui/gl/gl_surface_stub.h b/ui/gl/gl_surface_stub.h
index bf21573e1d50dfd70ed9a2eebc14110d95c09af7..9115b7c1dcd0f76b7c175669337524ead28a1f3f 100644
--- a/ui/gl/gl_surface_stub.h
+++ b/ui/gl/gl_surface_stub.h
@@ -13,19 +13,25 @@ namespace gfx {
class GL_EXPORT GLSurfaceStub : public GLSurface {
public:
void SetSize(const gfx::Size& size) { size_ = size; }
+ void set_buffers_flipped(bool flipped) { buffers_flipped_ = flipped; }
// Implement GLSurface.
void Destroy() override;
+ bool Resize(const gfx::Size& size,
+ float scale_factor,
+ bool has_alpha) override;
bool IsOffscreen() override;
gfx::SwapResult SwapBuffers() override;
gfx::Size GetSize() override;
void* GetHandle() override;
+ bool BuffersFlipped() const override;
protected:
~GLSurfaceStub() override;
private:
gfx::Size size_;
+ bool buffers_flipped_ = false;
};
} // namespace gfx
« no previous file with comments | « ui/gl/gl_surface_egl.cc ('k') | ui/gl/gl_surface_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698