OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_GL_GL_SURFACE_STUB_H_ | 5 #ifndef UI_GL_GL_SURFACE_STUB_H_ |
6 #define UI_GL_GL_SURFACE_STUB_H_ | 6 #define UI_GL_GL_SURFACE_STUB_H_ |
7 | 7 |
8 #include "ui/gl/gl_export.h" | 8 #include "ui/gl/gl_export.h" |
9 #include "ui/gl/gl_surface.h" | 9 #include "ui/gl/gl_surface.h" |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 void Destroy() override; | 24 void Destroy() override; |
25 bool Resize(const gfx::Size& size, | 25 bool Resize(const gfx::Size& size, |
26 float scale_factor, | 26 float scale_factor, |
27 bool has_alpha) override; | 27 bool has_alpha) override; |
28 bool IsOffscreen() override; | 28 bool IsOffscreen() override; |
29 gfx::SwapResult SwapBuffers() override; | 29 gfx::SwapResult SwapBuffers() override; |
30 gfx::Size GetSize() override; | 30 gfx::Size GetSize() override; |
31 void* GetHandle() override; | 31 void* GetHandle() override; |
32 bool BuffersFlipped() const override; | 32 bool BuffersFlipped() const override; |
33 GLSurfaceFormat GetFormat() override; | 33 GLSurfaceFormat GetFormat() override; |
34 bool SupportsSetDrawRectangle() const override; | 34 bool SupportsDCLayers() const override; |
35 gfx::Vector2d GetDrawOffset() const override; | 35 gfx::Vector2d GetDrawOffset() const override; |
36 | 36 |
37 protected: | 37 protected: |
38 ~GLSurfaceStub() override; | 38 ~GLSurfaceStub() override; |
39 | 39 |
40 private: | 40 private: |
41 gfx::Size size_; | 41 gfx::Size size_; |
42 bool buffers_flipped_ = false; | 42 bool buffers_flipped_ = false; |
43 bool supports_draw_rectangle_ = false; | 43 bool supports_draw_rectangle_ = false; |
44 }; | 44 }; |
45 | 45 |
46 } // namespace gl | 46 } // namespace gl |
47 | 47 |
48 #endif // UI_GL_GL_SURFACE_STUB_H_ | 48 #endif // UI_GL_GL_SURFACE_STUB_H_ |
OLD | NEW |