Commit 40620468 authored by Linshizhi's avatar Linshizhi

Stage.

parent 1437cb2b
...@@ -35,12 +35,16 @@ ...@@ -35,12 +35,16 @@
#include "skia/ext/legacy_display_globals.h" #include "skia/ext/legacy_display_globals.h"
#include "skia/ext/opacity_filter_canvas.h" #include "skia/ext/opacity_filter_canvas.h"
#include "third_party/skia/include/core/SkCanvas.h" #include "third_party/skia/include/core/SkCanvas.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "third_party/skia/include/core/SkImageEncoder.h"
#include "third_party/skia/include/core/SkStream.h"
#include "third_party/skia/include/core/SkColor.h" #include "third_party/skia/include/core/SkColor.h"
#include "third_party/skia/include/core/SkImageFilter.h" #include "third_party/skia/include/core/SkImageFilter.h"
#include "third_party/skia/include/core/SkMatrix.h" #include "third_party/skia/include/core/SkMatrix.h"
#include "third_party/skia/include/core/SkPath.h" #include "third_party/skia/include/core/SkPath.h"
#include "third_party/skia/include/core/SkPoint.h" #include "third_party/skia/include/core/SkPoint.h"
#include "third_party/skia/include/core/SkShader.h" #include "third_party/skia/include/core/SkShader.h"
#include "third_party/skia/include/core/SkData.h"
#include "third_party/skia/include/effects/SkShaderMaskFilter.h" #include "third_party/skia/include/effects/SkShaderMaskFilter.h"
#include "ui/gfx/geometry/axis_transform2d.h" #include "ui/gfx/geometry/axis_transform2d.h"
#include "ui/gfx/geometry/rect_conversions.h" #include "ui/gfx/geometry/rect_conversions.h"
...@@ -99,13 +103,16 @@ bool SoftwareRenderer::CanPartialSwap() { ...@@ -99,13 +103,16 @@ bool SoftwareRenderer::CanPartialSwap() {
void SoftwareRenderer::BeginDrawingFrame() { void SoftwareRenderer::BeginDrawingFrame() {
TRACE_EVENT0("viz", "SoftwareRenderer::BeginDrawingFrame"); TRACE_EVENT0("viz", "SoftwareRenderer::BeginDrawingFrame");
printf("SoftwareRenderer::BeginDrawingFrame()");
} }
void SoftwareRenderer::FinishDrawingFrame() { void SoftwareRenderer::FinishDrawingFrame() {
TRACE_EVENT0("viz", "SoftwareRenderer::FinishDrawingFrame"); TRACE_EVENT0("viz", "SoftwareRenderer::FinishDrawingFrame");
current_framebuffer_canvas_.reset(); current_framebuffer_canvas_.reset();
current_canvas_ = nullptr; current_canvas_ = nullptr;
printf("SoftwareRenderer::FinishDrawingFrame()");
if (root_canvas_) if (root_canvas_)
output_device_->EndPaint(); output_device_->EndPaint();
root_canvas_ = nullptr; root_canvas_ = nullptr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment