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

Side by Side Diff: cc/output/gl_renderer.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/direct_renderer.cc ('k') | cc/output/gl_renderer.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 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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_GL_RENDERER_H_ 5 #ifndef CC_OUTPUT_GL_RENDERER_H_
6 #define CC_OUTPUT_GL_RENDERER_H_ 6 #define CC_OUTPUT_GL_RENDERER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 void DoDrawQuad(const class DrawQuad*, 93 void DoDrawQuad(const class DrawQuad*,
94 const gfx::QuadF* draw_region) override; 94 const gfx::QuadF* draw_region) override;
95 void BeginDrawingFrame() override; 95 void BeginDrawingFrame() override;
96 void FinishDrawingFrame() override; 96 void FinishDrawingFrame() override;
97 bool FlippedFramebuffer() const override; 97 bool FlippedFramebuffer() const override;
98 bool FlippedRootFramebuffer() const; 98 bool FlippedRootFramebuffer() const;
99 void EnsureScissorTestEnabled() override; 99 void EnsureScissorTestEnabled() override;
100 void EnsureScissorTestDisabled() override; 100 void EnsureScissorTestDisabled() override;
101 void CopyCurrentRenderPassToBitmap( 101 void CopyCurrentRenderPassToBitmap(
102 std::unique_ptr<CopyOutputRequest> request) override; 102 std::unique_ptr<CopyOutputRequest> request) override;
103 void SetEnableDCLayers(bool enable) override;
103 void FinishDrawingQuadList() override; 104 void FinishDrawingQuadList() override;
104 105
105 // Returns true if quad requires antialiasing and false otherwise. 106 // Returns true if quad requires antialiasing and false otherwise.
106 static bool ShouldAntialiasQuad(const gfx::QuadF& device_layer_quad, 107 static bool ShouldAntialiasQuad(const gfx::QuadF& device_layer_quad,
107 bool clipped, 108 bool clipped,
108 bool force_aa); 109 bool force_aa);
109 110
110 // Inflate the quad and fill edge array for fragment shader. 111 // Inflate the quad and fill edge array for fragment shader.
111 // |local_quad| is set to inflated quad. |edge| array is filled with 112 // |local_quad| is set to inflated quad. |edge| array is filled with
112 // inflated quad's edge data. 113 // inflated quad's edge data.
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 gfx::Size offscreen_stencil_renderbuffer_size_; 363 gfx::Size offscreen_stencil_renderbuffer_size_;
363 364
364 base::WeakPtrFactory<GLRenderer> weak_ptr_factory_; 365 base::WeakPtrFactory<GLRenderer> weak_ptr_factory_;
365 366
366 DISALLOW_COPY_AND_ASSIGN(GLRenderer); 367 DISALLOW_COPY_AND_ASSIGN(GLRenderer);
367 }; 368 };
368 369
369 } // namespace cc 370 } // namespace cc
370 371
371 #endif // CC_OUTPUT_GL_RENDERER_H_ 372 #endif // CC_OUTPUT_GL_RENDERER_H_
OLDNEW
« no previous file with comments | « cc/output/direct_renderer.cc ('k') | cc/output/gl_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698