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

Unified Diff: ui/views/paint_lock.h

Issue 10835027: views: Remove unused PaintLock API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 | « no previous file | ui/views/paint_lock.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/paint_lock.h
diff --git a/ui/views/paint_lock.h b/ui/views/paint_lock.h
deleted file mode 100644
index 4fd32156697352f2c5c8fe63bcae144f947ff94c..0000000000000000000000000000000000000000
--- a/ui/views/paint_lock.h
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef UI_VIEWS_PAINT_LOCK_H_
-#define UI_VIEWS_PAINT_LOCK_H_
-
-#include "base/basictypes.h"
-#include "ui/views/views_export.h"
-
-namespace views {
-
-class View;
-
-// Instances of PaintLock can be created to disable painting of the view
-// (compositing is not disabled). When the class is destroyed, painting is
-// re-enabled. This can be useful during operations like animations, that are
-// sensitive to costly paints, and during which only composting, not painting,
-// is required.
-class VIEWS_EXPORT PaintLock {
- public:
- // The paint lock does not own the view. It is an error for the view to be
- // destroyed before the lock.
- explicit PaintLock(View* view);
- ~PaintLock();
-
- private:
- View* view_;
-
- DISALLOW_COPY_AND_ASSIGN(PaintLock);
-};
-
-} // namespace views
-
-#endif // UI_VIEWS_PAINT_LOCK_H_
« no previous file with comments | « no previous file | ui/views/paint_lock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698