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

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 on the bots 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..685a4572a8b05b1f8966246e502db5173555014c 100644
--- a/cc/test/fake_content_layer.cc
+++ b/cc/test/fake_content_layer.cc
@@ -4,11 +4,18 @@
#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:
+ ~FakeContentLayerUpdater() {}
danakj 2013/12/04 16:32:17 It should be virtual, then LGTM
+ using ContentLayerUpdater::content_rect;
+};
+
FakeContentLayer::FakeContentLayer(ContentLayerClient* client)
: ContentLayer(client),
update_count_(0),
@@ -34,6 +41,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