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

Unified Diff: third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp

Issue 2503203002: Revert "Getting rid of DelegatedFrameData" (Closed)
Patch Set: Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/ui/ws/window_tree_client_unittest.cc ('k') | tools/ipc_fuzzer/fuzzer/fuzzer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp b/third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp
index c9ae4ea51ed5a5bba2e665270fa785d9440b1d21..0ca6441697bdfd5b34a68aca6bdc65394870dbca 100644
--- a/third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp
+++ b/third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp
@@ -186,6 +186,7 @@ void OffscreenCanvasFrameDispatcherImpl::dispatchFrame(
cc::CompositorFrame frame;
// TODO(crbug.com/652931): update the device_scale_factor
frame.metadata.device_scale_factor = 1.0f;
+ frame.delegated_frame_data.reset(new cc::DelegatedFrameData);
const gfx::Rect bounds(m_width, m_height);
const cc::RenderPassId renderPassId(1, 1);
@@ -256,7 +257,7 @@ void OffscreenCanvasFrameDispatcherImpl::dispatchFrame(
commitTypeHistogram.count(commitType);
m_nextResourceId++;
- frame.resource_list.push_back(std::move(resource));
+ frame.delegated_frame_data->resource_list.push_back(std::move(resource));
cc::TextureDrawQuad* quad =
pass->CreateAndAppendDrawQuad<cc::TextureDrawQuad>();
@@ -277,7 +278,7 @@ void OffscreenCanvasFrameDispatcherImpl::dispatchFrame(
SK_ColorTRANSPARENT, vertexOpacity, yflipped, nearestNeighbor,
false);
- frame.render_pass_list.push_back(std::move(pass));
+ frame.delegated_frame_data->render_pass_list.push_back(std::move(pass));
double elapsedTime = WTF::monotonicallyIncreasingTime() - commitStartTime;
« no previous file with comments | « services/ui/ws/window_tree_client_unittest.cc ('k') | tools/ipc_fuzzer/fuzzer/fuzzer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698