|
@@ -17,6 +17,7 @@
|
|
|
#include "components/viz/common/frame_sinks/copy_output_request.h"
|
|
|
#include "components/viz/common/frame_sinks/delay_based_time_source.h"
|
|
|
#include "components/viz/common/gl_helper.h"
|
|
|
+#include "components/viz/common/quads/render_pass.h"
|
|
|
#include "content/browser/renderer_host/compositor_resize_lock.h"
|
|
|
#include "content/browser/renderer_host/render_widget_host_delegate.h"
|
|
|
#include "content/browser/renderer_host/render_widget_host_impl.h"
|
|
@@ -573,7 +574,7 @@ void OffScreenRenderWidgetHostView::SubmitCompositorFrame(
|
|
|
|
|
|
// Determine the damage rectangle for the current frame. This is the same
|
|
|
// calculation that SwapDelegatedFrame uses.
|
|
|
- cc::RenderPass* root_pass = frame.render_pass_list.back().get();
|
|
|
+ viz::RenderPass* root_pass = frame.render_pass_list.back().get();
|
|
|
gfx::Size frame_size = root_pass->output_rect.size();
|
|
|
gfx::Rect damage_rect =
|
|
|
gfx::ToEnclosingRect(gfx::RectF(root_pass->damage_rect));
|