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

Unified Diff: cc/layers/delegated_renderer_layer.cc

Issue 93463002: cc: Remove DelegatingRendererLayerClient (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed LayerTreeHostDelegatedTestClientDidCommitCallback Created 7 years 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 | « cc/layers/delegated_renderer_layer.h ('k') | cc/layers/delegated_renderer_layer_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/delegated_renderer_layer.cc
diff --git a/cc/layers/delegated_renderer_layer.cc b/cc/layers/delegated_renderer_layer.cc
index a940903b966d2fe87ca786fc819ea525593e7803..7330e759e3a0cdd4b8a77fcc75e0e96107a37b0a 100644
--- a/cc/layers/delegated_renderer_layer.cc
+++ b/cc/layers/delegated_renderer_layer.cc
@@ -4,7 +4,6 @@
#include "cc/layers/delegated_renderer_layer.h"
-#include "cc/layers/delegated_renderer_layer_client.h"
#include "cc/layers/delegated_renderer_layer_impl.h"
#include "cc/output/delegated_frame_data.h"
#include "cc/quads/render_pass_draw_quad.h"
@@ -14,17 +13,14 @@
namespace cc {
scoped_refptr<DelegatedRendererLayer> DelegatedRendererLayer::Create(
- DelegatedRendererLayerClient* client,
const scoped_refptr<DelegatedFrameProvider>& frame_provider) {
return scoped_refptr<DelegatedRendererLayer>(
- new DelegatedRendererLayer(client, frame_provider));
+ new DelegatedRendererLayer(frame_provider));
}
DelegatedRendererLayer::DelegatedRendererLayer(
- DelegatedRendererLayerClient* client,
const scoped_refptr<DelegatedFrameProvider>& frame_provider)
: Layer(),
- client_(client),
frame_provider_(frame_provider),
should_collect_new_frame_(true),
frame_data_(NULL),
@@ -81,11 +77,6 @@ void DelegatedRendererLayer::PushPropertiesTo(LayerImpl* impl) {
frame_data_ = NULL;
frame_damage_ = gfx::RectF();
- // The ResourceProvider will have the new frame as soon as we push it to the
- // pending tree. So resources no longer in use will be returned as well.
- if (client_)
- client_->DidCommitFrameData();
-
// TODO(danakj): The DidCommitFrameData() notification requires a push
// properties to happen in order to notify about resources returned
// from the parent compositor that are no longer in use. crbug.com/259090
« no previous file with comments | « cc/layers/delegated_renderer_layer.h ('k') | cc/layers/delegated_renderer_layer_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698