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

Side by Side Diff: cc/output/software_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/output_surface.h ('k') | cc/output/software_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 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_SOFTWARE_RENDERER_H_ 5 #ifndef CC_OUTPUT_SOFTWARE_RENDERER_H_
6 #define CC_OUTPUT_SOFTWARE_RENDERER_H_ 6 #define CC_OUTPUT_SOFTWARE_RENDERER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "cc/cc_export.h" 9 #include "cc/cc_export.h"
10 #include "cc/output/direct_renderer.h" 10 #include "cc/output/direct_renderer.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 void PrepareSurfaceForPass(SurfaceInitializationMode initialization_mode, 44 void PrepareSurfaceForPass(SurfaceInitializationMode initialization_mode,
45 const gfx::Rect& render_pass_scissor) override; 45 const gfx::Rect& render_pass_scissor) override;
46 void DoDrawQuad(const DrawQuad* quad, const gfx::QuadF* draw_region) override; 46 void DoDrawQuad(const DrawQuad* quad, const gfx::QuadF* draw_region) override;
47 void BeginDrawingFrame() override; 47 void BeginDrawingFrame() override;
48 void FinishDrawingFrame() override; 48 void FinishDrawingFrame() override;
49 bool FlippedFramebuffer() const override; 49 bool FlippedFramebuffer() const override;
50 void EnsureScissorTestEnabled() override; 50 void EnsureScissorTestEnabled() override;
51 void EnsureScissorTestDisabled() override; 51 void EnsureScissorTestDisabled() override;
52 void CopyCurrentRenderPassToBitmap( 52 void CopyCurrentRenderPassToBitmap(
53 std::unique_ptr<CopyOutputRequest> request) override; 53 std::unique_ptr<CopyOutputRequest> request) override;
54 void SetEnableDCLayers(bool enable) override;
54 void DidChangeVisibility() override; 55 void DidChangeVisibility() override;
55 56
56 private: 57 private:
57 void ClearCanvas(SkColor color); 58 void ClearCanvas(SkColor color);
58 void ClearFramebuffer(); 59 void ClearFramebuffer();
59 void SetClipRect(const gfx::Rect& rect); 60 void SetClipRect(const gfx::Rect& rect);
60 bool IsSoftwareResource(ResourceId resource_id) const; 61 bool IsSoftwareResource(ResourceId resource_id) const;
61 62
62 void DrawDebugBorderQuad(const DebugBorderDrawQuad* quad); 63 void DrawDebugBorderQuad(const DebugBorderDrawQuad* quad);
63 void DrawPictureQuad(const PictureDrawQuad* quad); 64 void DrawPictureQuad(const PictureDrawQuad* quad);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 std::unique_ptr<ResourceProvider::ScopedWriteLockSoftware> 96 std::unique_ptr<ResourceProvider::ScopedWriteLockSoftware>
96 current_framebuffer_lock_; 97 current_framebuffer_lock_;
97 std::unique_ptr<SkCanvas> current_framebuffer_canvas_; 98 std::unique_ptr<SkCanvas> current_framebuffer_canvas_;
98 99
99 DISALLOW_COPY_AND_ASSIGN(SoftwareRenderer); 100 DISALLOW_COPY_AND_ASSIGN(SoftwareRenderer);
100 }; 101 };
101 102
102 } // namespace cc 103 } // namespace cc
103 104
104 #endif // CC_OUTPUT_SOFTWARE_RENDERER_H_ 105 #endif // CC_OUTPUT_SOFTWARE_RENDERER_H_
OLDNEW
« no previous file with comments | « cc/output/output_surface.h ('k') | cc/output/software_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698