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

Side by Side Diff: cc/output/output_surface.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 | « cc/output/gl_renderer_unittest.cc ('k') | cc/output/software_renderer.h » ('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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 CC_OUTPUT_OUTPUT_SURFACE_H_ 5 #ifndef CC_OUTPUT_OUTPUT_SURFACE_H_
6 #define CC_OUTPUT_OUTPUT_SURFACE_H_ 6 #define CC_OUTPUT_OUTPUT_SURFACE_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 virtual void BindToClient(OutputSurfaceClient* client) = 0; 77 virtual void BindToClient(OutputSurfaceClient* client) = 0;
78 78
79 virtual void EnsureBackbuffer() = 0; 79 virtual void EnsureBackbuffer() = 0;
80 virtual void DiscardBackbuffer() = 0; 80 virtual void DiscardBackbuffer() = 0;
81 81
82 // Bind the default framebuffer for drawing to, only valid for GL backed 82 // Bind the default framebuffer for drawing to, only valid for GL backed
83 // OutputSurfaces. 83 // OutputSurfaces.
84 virtual void BindFramebuffer() = 0; 84 virtual void BindFramebuffer() = 0;
85 85
86 // Marks that the given rectangle will be drawn to on the default, bound 86 // Marks that the given rectangle will be drawn to on the default, bound
87 // framebuffer. Only valid for surfaces with set_draw_rectangle in the 87 // framebuffer. Only valid for surfaces with dc_layers in the context
88 // context capabilities. 88 // capabilities.
89 virtual void SetDrawRectangle(const gfx::Rect& rect) = 0; 89 virtual void SetDrawRectangle(const gfx::Rect& rect) = 0;
90 90
91 // Get the class capable of informing cc of hardware overlay capability. 91 // Get the class capable of informing cc of hardware overlay capability.
92 virtual OverlayCandidateValidator* GetOverlayCandidateValidator() const = 0; 92 virtual OverlayCandidateValidator* GetOverlayCandidateValidator() const = 0;
93 93
94 // Returns true if a main image overlay plane should be scheduled. 94 // Returns true if a main image overlay plane should be scheduled.
95 virtual bool IsDisplayedAsOverlayPlane() const = 0; 95 virtual bool IsDisplayedAsOverlayPlane() const = 0;
96 96
97 // Get the texture for the main image's overlay. 97 // Get the texture for the main image's overlay.
98 virtual unsigned GetOverlayTextureId() const = 0; 98 virtual unsigned GetOverlayTextureId() const = 0;
(...skipping 25 matching lines...) Expand all
124 scoped_refptr<VulkanContextProvider> vulkan_context_provider_; 124 scoped_refptr<VulkanContextProvider> vulkan_context_provider_;
125 std::unique_ptr<SoftwareOutputDevice> software_device_; 125 std::unique_ptr<SoftwareOutputDevice> software_device_;
126 126
127 private: 127 private:
128 DISALLOW_COPY_AND_ASSIGN(OutputSurface); 128 DISALLOW_COPY_AND_ASSIGN(OutputSurface);
129 }; 129 };
130 130
131 } // namespace cc 131 } // namespace cc
132 132
133 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ 133 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « cc/output/gl_renderer_unittest.cc ('k') | cc/output/software_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698