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

Side by Side Diff: ui/gl/gl_surface_stub.h

Issue 2743663006: Allow switching DirectCompositionSurfaceWin between drawing modes. (Closed)
Patch Set: rebase Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « ui/gl/gl_surface.cc ('k') | ui/gl/gl_surface_stub.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « ui/gl/gl_surface.cc ('k') | ui/gl/gl_surface_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698