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

Unified Diff: cc/test/fake_content_layer.cc

Issue 85143002: Dirty rects always contain full tiles with delegated rendering. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed build break 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/test/fake_content_layer.h ('k') | cc/trees/layer_tree_host_unittest_damage.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_content_layer.cc
diff --git a/cc/test/fake_content_layer.cc b/cc/test/fake_content_layer.cc
index 56a52cc10c7dd24a51163dc6f9b30586ef6bca30..9eaa6f7553dc982f4aff8812b3efbcf00e8d0856 100644
--- a/cc/test/fake_content_layer.cc
+++ b/cc/test/fake_content_layer.cc
@@ -4,11 +4,20 @@
#include "cc/test/fake_content_layer.h"
+#include "cc/resources/content_layer_updater.h"
#include "cc/resources/prioritized_resource.h"
#include "cc/test/fake_content_layer_impl.h"
namespace cc {
+class FakeContentLayerUpdater : public ContentLayerUpdater {
+ public:
+ using ContentLayerUpdater::content_rect;
+
+ private:
+ virtual ~FakeContentLayerUpdater() {}
+};
+
FakeContentLayer::FakeContentLayer(ContentLayerClient* client)
: ContentLayer(client),
update_count_(0),
@@ -34,6 +43,11 @@ bool FakeContentLayer::Update(ResourceUpdateQueue* queue,
return updated || always_update_resources_;
}
+gfx::Rect FakeContentLayer::LastPaintRect() const {
+ return (static_cast<FakeContentLayerUpdater*>
+ (Updater()))->content_rect();
+}
+
void FakeContentLayer::PushPropertiesTo(LayerImpl* layer) {
ContentLayer::PushPropertiesTo(layer);
push_properties_count_++;
« no previous file with comments | « cc/test/fake_content_layer.h ('k') | cc/trees/layer_tree_host_unittest_damage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698