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

Unified Diff: views/view_unittest.cc

Issue 7845033: Rework View Layer Draw() to use the Layer::DrawTree() method and the LayerDelegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 months 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 | « views/view.cc ('k') | views/widget/native_widget_aura.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/view_unittest.cc
===================================================================
--- views/view_unittest.cc (revision 100773)
+++ views/view_unittest.cc (working copy)
@@ -67,7 +67,7 @@
virtual void OnMouseReleased(const MouseEvent& event) OVERRIDE;
virtual ui::TouchStatus OnTouchEvent(const TouchEvent& event) OVERRIDE;
virtual void Paint(gfx::Canvas* canvas) OVERRIDE;
- virtual void SchedulePaintInternal(const gfx::Rect& rect) OVERRIDE;
+ virtual void SchedulePaintInRect(const gfx::Rect& rect) OVERRIDE;
virtual bool AcceleratorPressed(const Accelerator& accelerator) OVERRIDE;
// OnBoundsChanged.
@@ -398,9 +398,9 @@
canvas->AsCanvasSkia()->getClipBounds(&last_clip_);
}
-void TestView::SchedulePaintInternal(const gfx::Rect& rect) {
+void TestView::SchedulePaintInRect(const gfx::Rect& rect) {
scheduled_paint_rects_.push_back(rect);
- View::SchedulePaintInternal(rect);
+ View::SchedulePaintInRect(rect);
}
void CheckRect(const SkRect& check_rect, const SkRect& target_rect) {
@@ -1480,7 +1480,7 @@
gfx::Rect scheduled_paint_rect() const { return scheduled_paint_rect_; }
// Overridden from View:
- virtual void SchedulePaintInternal(const gfx::Rect& rect) {
+ virtual void SchedulePaintInRect(const gfx::Rect& rect) {
gfx::Rect xrect = ConvertRectToParent(rect);
scheduled_paint_rect_ = scheduled_paint_rect_.Union(xrect);
}
@@ -2345,16 +2345,15 @@
class TestCompositor : public ui::Compositor {
public:
- TestCompositor() : Compositor(gfx::Size(100, 100)) {}
+ TestCompositor() : Compositor(NULL, gfx::Size(100, 100)) {}
// ui::Compositor:
virtual ui::Texture* CreateTexture() OVERRIDE {
return new TestTexture();
}
- virtual void NotifyStart() OVERRIDE {}
- virtual void NotifyEnd() OVERRIDE {}
+ virtual void OnNotifyStart() OVERRIDE {}
+ virtual void OnNotifyEnd() OVERRIDE {}
virtual void Blur(const gfx::Rect& bounds) OVERRIDE {}
- virtual void SchedulePaint() OVERRIDE {}
protected:
virtual void OnWidgetSizeChanged() OVERRIDE {}
« no previous file with comments | « views/view.cc ('k') | views/widget/native_widget_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698