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

Side by Side Diff: cc/output/software_renderer.h

Issue 2253823002: cc: Remove all impl-side caps from RendererCapabilitiesImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@delete-renderer-base-class
Patch Set: renderercaps: ennereview Created 4 years, 4 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/renderer_capabilities_impl.cc ('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/base/cc_export.h" 9 #include "cc/base/cc_export.h"
10 #include "cc/output/compositor_frame.h" 10 #include "cc/output/compositor_frame.h"
(...skipping 20 matching lines...) Expand all
31 ~SoftwareRenderer() override; 31 ~SoftwareRenderer() override;
32 32
33 const RendererCapabilitiesImpl& Capabilities() const override; 33 const RendererCapabilitiesImpl& Capabilities() const override;
34 void SwapBuffers(CompositorFrameMetadata metadata) override; 34 void SwapBuffers(CompositorFrameMetadata metadata) override;
35 35
36 void SetDisablePictureQuadImageFiltering(bool disable) { 36 void SetDisablePictureQuadImageFiltering(bool disable) {
37 disable_picture_quad_image_filtering_ = disable; 37 disable_picture_quad_image_filtering_ = disable;
38 } 38 }
39 39
40 protected: 40 protected:
41 bool CanPartialSwap() override;
41 void BindFramebufferToOutputSurface(DrawingFrame* frame) override; 42 void BindFramebufferToOutputSurface(DrawingFrame* frame) override;
42 bool BindFramebufferToTexture(DrawingFrame* frame, 43 bool BindFramebufferToTexture(DrawingFrame* frame,
43 const ScopedResource* texture) override; 44 const ScopedResource* texture) override;
44 void SetScissorTestRect(const gfx::Rect& scissor_rect) override; 45 void SetScissorTestRect(const gfx::Rect& scissor_rect) override;
45 void PrepareSurfaceForPass(DrawingFrame* frame, 46 void PrepareSurfaceForPass(DrawingFrame* frame,
46 SurfaceInitializationMode initialization_mode, 47 SurfaceInitializationMode initialization_mode,
47 const gfx::Rect& render_pass_scissor) override; 48 const gfx::Rect& render_pass_scissor) override;
48 void DoDrawQuad(DrawingFrame* frame, 49 void DoDrawQuad(DrawingFrame* frame,
49 const DrawQuad* quad, 50 const DrawQuad* quad,
50 const gfx::QuadF* draw_region) override; 51 const gfx::QuadF* draw_region) override;
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 std::unique_ptr<ResourceProvider::ScopedWriteLockSoftware> 107 std::unique_ptr<ResourceProvider::ScopedWriteLockSoftware>
107 current_framebuffer_lock_; 108 current_framebuffer_lock_;
108 sk_sp<SkCanvas> current_framebuffer_canvas_; 109 sk_sp<SkCanvas> current_framebuffer_canvas_;
109 110
110 DISALLOW_COPY_AND_ASSIGN(SoftwareRenderer); 111 DISALLOW_COPY_AND_ASSIGN(SoftwareRenderer);
111 }; 112 };
112 113
113 } // namespace cc 114 } // namespace cc
114 115
115 #endif // CC_OUTPUT_SOFTWARE_RENDERER_H_ 116 #endif // CC_OUTPUT_SOFTWARE_RENDERER_H_
OLDNEW
« no previous file with comments | « cc/output/renderer_capabilities_impl.cc ('k') | cc/output/software_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698