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

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

Issue 2442453003: cc: Add back a benchmark category trace for counting renderer frames (Closed)
Patch Set: swapbuffers-perftests: . Created 4 years, 2 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/gl_renderer.cc ('k') | cc/trees/layer_tree_host_impl.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 #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/copy_output_request.h" 10 #include "cc/output/copy_output_request.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 current_framebuffer_lock_ = nullptr; 75 current_framebuffer_lock_ = nullptr;
76 current_framebuffer_canvas_.reset(); 76 current_framebuffer_canvas_.reset();
77 current_canvas_ = nullptr; 77 current_canvas_ = nullptr;
78 root_canvas_ = nullptr; 78 root_canvas_ = nullptr;
79 79
80 output_device_->EndPaint(); 80 output_device_->EndPaint();
81 } 81 }
82 82
83 void SoftwareRenderer::SwapBuffers(std::vector<ui::LatencyInfo> latency_info) { 83 void SoftwareRenderer::SwapBuffers(std::vector<ui::LatencyInfo> latency_info) {
84 DCHECK(visible_); 84 DCHECK(visible_);
85 TRACE_EVENT0("cc,benchmark", "SoftwareRenderer::SwapBuffers"); 85 TRACE_EVENT0("cc", "SoftwareRenderer::SwapBuffers");
86 OutputSurfaceFrame output_frame; 86 OutputSurfaceFrame output_frame;
87 output_frame.latency_info = std::move(latency_info); 87 output_frame.latency_info = std::move(latency_info);
88 output_surface_->SwapBuffers(std::move(output_frame)); 88 output_surface_->SwapBuffers(std::move(output_frame));
89 } 89 }
90 90
91 bool SoftwareRenderer::FlippedFramebuffer(const DrawingFrame* frame) const { 91 bool SoftwareRenderer::FlippedFramebuffer(const DrawingFrame* frame) const {
92 return false; 92 return false;
93 } 93 }
94 94
95 void SoftwareRenderer::EnsureScissorTestEnabled() { 95 void SoftwareRenderer::EnsureScissorTestEnabled() {
(...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after
712 ApplyImageFilter(filter.get(), quad, backdrop_bitmap, nullptr); 712 ApplyImageFilter(filter.get(), quad, backdrop_bitmap, nullptr);
713 713
714 if (!filter_backdrop_image) 714 if (!filter_backdrop_image)
715 return nullptr; 715 return nullptr;
716 716
717 return filter_backdrop_image->makeShader(content_tile_mode, content_tile_mode, 717 return filter_backdrop_image->makeShader(content_tile_mode, content_tile_mode,
718 &filter_backdrop_transform); 718 &filter_backdrop_transform);
719 } 719 }
720 720
721 } // namespace cc 721 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output/gl_renderer.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698