| Index: cc/output/direct_renderer.cc
|
| diff --git a/cc/output/direct_renderer.cc b/cc/output/direct_renderer.cc
|
| index ad39f1a3ed545eb86df989e8efdc993711c4ecf4..d59f93987e882e2c0499260f07dd609f5798abd2 100644
|
| --- a/cc/output/direct_renderer.cc
|
| +++ b/cc/output/direct_renderer.cc
|
| @@ -14,6 +14,7 @@
|
| #include "cc/base/math_util.h"
|
| #include "cc/output/copy_output_request.h"
|
| #include "cc/quads/draw_quad.h"
|
| +#include "cc/quads/texture_draw_quad.h"
|
| #include "ui/gfx/geometry/rect_conversions.h"
|
| #include "ui/gfx/transform.h"
|
|
|
| @@ -133,6 +134,7 @@ DirectRenderer::DirectRenderer(RendererClient* client,
|
| resource_provider_(resource_provider),
|
| overlay_processor_(
|
| new OverlayProcessor(output_surface, resource_provider)) {
|
| + //printf("DirectRenderer %p\n", this);
|
| overlay_processor_->Initialize();
|
| }
|
|
|
| @@ -197,6 +199,14 @@ void DirectRenderer::DrawFrame(RenderPassList* render_passes_in_draw_order,
|
| const gfx::Rect& device_viewport_rect,
|
| const gfx::Rect& device_clip_rect,
|
| bool disable_picture_quad_image_filtering) {
|
| + /*for (auto* render_pass : *render_passes_in_draw_order) {
|
| + for (auto& quad : render_pass->quad_list) {
|
| + if (quad.material == DrawQuad::TEXTURE_CONTENT) {
|
| + TextureDrawQuad& tq = static_cast<TextureDrawQuad&>(quad);
|
| + printf("DirectRenderer::DrawFrame texture quad %d %d\n", tq.nearest_neighbor, tq.resource_id);
|
| + }
|
| + }
|
| + }*/
|
| TRACE_EVENT0("cc", "DirectRenderer::DrawFrame");
|
| UMA_HISTOGRAM_COUNTS("Renderer4.renderPassCount",
|
| render_passes_in_draw_order->size());
|
| @@ -381,6 +391,10 @@ void DirectRenderer::DrawRenderPass(DrawingFrame* frame,
|
| SetScissorStateForQuad(frame, quad);
|
| }
|
|
|
| + /*if (quad.material == DrawQuad::TEXTURE_CONTENT) {
|
| + const TextureDrawQuad& tquad = static_cast<const TextureDrawQuad&>(quad);
|
| + printf("DirectRenderer::DrawRenderPass %d %d\n", tquad.nearest_neighbor, tquad.resource_id);
|
| + }*/
|
| if (!should_skip_quad)
|
| DoDrawQuad(frame, &quad);
|
| }
|
|
|