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

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

Issue 2231093003: cc: Remove FinishAllRendering, as it doesn't do anything anymore. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: finishallrendering: . 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/software_renderer.h ('k') | cc/test/fake_proxy.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 #include "cc/output/software_renderer.h" 5 #include "cc/output/software_renderer.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "base/trace_event/trace_event.h" 8 #include "base/trace_event/trace_event.h"
9 #include "cc/base/math_util.h" 9 #include "cc/base/math_util.h"
10 #include "cc/output/compositor_frame.h" 10 #include "cc/output/compositor_frame.h"
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 // rendering, but the underlying effect we want is to clear any existing 125 // rendering, but the underlying effect we want is to clear any existing
126 // clipRect on the current SkCanvas. This is done by setting clipRect to 126 // clipRect on the current SkCanvas. This is done by setting clipRect to
127 // the viewport's dimensions. 127 // the viewport's dimensions.
128 if (!current_canvas_) 128 if (!current_canvas_)
129 return; 129 return;
130 is_scissor_enabled_ = false; 130 is_scissor_enabled_ = false;
131 SkISize size = current_canvas_->getBaseLayerSize(); 131 SkISize size = current_canvas_->getBaseLayerSize();
132 SetClipRect(gfx::Rect(size.width(), size.height())); 132 SetClipRect(gfx::Rect(size.width(), size.height()));
133 } 133 }
134 134
135 void SoftwareRenderer::Finish() {}
136
137 void SoftwareRenderer::BindFramebufferToOutputSurface(DrawingFrame* frame) { 135 void SoftwareRenderer::BindFramebufferToOutputSurface(DrawingFrame* frame) {
138 DCHECK(!output_surface_->HasExternalStencilTest()); 136 DCHECK(!output_surface_->HasExternalStencilTest());
139 current_framebuffer_lock_ = nullptr; 137 current_framebuffer_lock_ = nullptr;
140 current_framebuffer_canvas_.reset(); 138 current_framebuffer_canvas_.reset();
141 current_canvas_ = root_canvas_; 139 current_canvas_ = root_canvas_;
142 } 140 }
143 141
144 bool SoftwareRenderer::BindFramebufferToTexture( 142 bool SoftwareRenderer::BindFramebufferToTexture(
145 DrawingFrame* frame, 143 DrawingFrame* frame,
146 const ScopedResource* texture) { 144 const ScopedResource* texture) {
(...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after
753 ApplyImageFilter(filter.get(), quad, backdrop_bitmap, nullptr); 751 ApplyImageFilter(filter.get(), quad, backdrop_bitmap, nullptr);
754 752
755 if (!filter_backdrop_image) 753 if (!filter_backdrop_image)
756 return nullptr; 754 return nullptr;
757 755
758 return filter_backdrop_image->makeShader(content_tile_mode, content_tile_mode, 756 return filter_backdrop_image->makeShader(content_tile_mode, content_tile_mode,
759 &filter_backdrop_transform); 757 &filter_backdrop_transform);
760 } 758 }
761 759
762 } // namespace cc 760 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output/software_renderer.h ('k') | cc/test/fake_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698