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

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

Issue 2096493002: Make cc::CompositorFrames movable [Part 1 of 2] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Dana's nits Created 4 years, 6 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_unittest.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 18 matching lines...) Expand all
29 static std::unique_ptr<SoftwareRenderer> Create( 29 static std::unique_ptr<SoftwareRenderer> Create(
30 RendererClient* client, 30 RendererClient* client,
31 const RendererSettings* settings, 31 const RendererSettings* settings,
32 OutputSurface* output_surface, 32 OutputSurface* output_surface,
33 ResourceProvider* resource_provider, 33 ResourceProvider* resource_provider,
34 bool use_image_hijack_canvas); 34 bool use_image_hijack_canvas);
35 35
36 ~SoftwareRenderer() override; 36 ~SoftwareRenderer() override;
37 const RendererCapabilitiesImpl& Capabilities() const override; 37 const RendererCapabilitiesImpl& Capabilities() const override;
38 void Finish() override; 38 void Finish() override;
39 void SwapBuffers(const CompositorFrameMetadata& metadata) override; 39 void SwapBuffers(CompositorFrameMetadata metadata) override;
40 void DiscardBackbuffer() override; 40 void DiscardBackbuffer() override;
41 void EnsureBackbuffer() override; 41 void EnsureBackbuffer() override;
42 42
43 protected: 43 protected:
44 void BindFramebufferToOutputSurface(DrawingFrame* frame) override; 44 void BindFramebufferToOutputSurface(DrawingFrame* frame) override;
45 bool BindFramebufferToTexture(DrawingFrame* frame, 45 bool BindFramebufferToTexture(DrawingFrame* frame,
46 const ScopedResource* texture) override; 46 const ScopedResource* texture) override;
47 void SetScissorTestRect(const gfx::Rect& scissor_rect) override; 47 void SetScissorTestRect(const gfx::Rect& scissor_rect) override;
48 void PrepareSurfaceForPass(DrawingFrame* frame, 48 void PrepareSurfaceForPass(DrawingFrame* frame,
49 SurfaceInitializationMode initialization_mode, 49 SurfaceInitializationMode initialization_mode,
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 // draw when a GPU ImageDecodeController is in use, as software rasterization 123 // draw when a GPU ImageDecodeController is in use, as software rasterization
124 // cannot use the GPU IDC. 124 // cannot use the GPU IDC.
125 const bool use_image_hijack_canvas_; 125 const bool use_image_hijack_canvas_;
126 126
127 DISALLOW_COPY_AND_ASSIGN(SoftwareRenderer); 127 DISALLOW_COPY_AND_ASSIGN(SoftwareRenderer);
128 }; 128 };
129 129
130 } // namespace cc 130 } // namespace cc
131 131
132 #endif // CC_OUTPUT_SOFTWARE_RENDERER_H_ 132 #endif // CC_OUTPUT_SOFTWARE_RENDERER_H_
OLDNEW
« no previous file with comments | « cc/output/renderer_unittest.cc ('k') | cc/output/software_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698