Move DrawQuads to components/viz/

https://chromium-review.googlesource.com/667539
This commit is contained in:
Aleksei Kuzmin 2017-12-18 13:09:51 +03:00
Родитель 74cedd3255
Коммит aab6f27503
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -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));