summaryrefslogtreecommitdiffstats
path: root/content/browser/aura/resize_lock.h
diff options
context:
space:
mode:
authordanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-13 22:29:16 +0000
committerdanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-13 22:29:16 +0000
commitfa282ad09855ade5832411e0ee5a7cc64dda2484 (patch)
treedf28692447720ab4978efd99b05fcda8d59e17e1 /content/browser/aura/resize_lock.h
parentbe70b395f0b474a01757f8dea88c2d1d3854c464 (diff)
downloadchromium_src-fa282ad09855ade5832411e0ee5a7cc64dda2484.zip
chromium_src-fa282ad09855ade5832411e0ee5a7cc64dda2484.tar.gz
chromium_src-fa282ad09855ade5832411e0ee5a7cc64dda2484.tar.bz2
Revert 223140 "aura: When skipping frames, ensure next frame dam..."
compile errors that the trybots didn't catch?? > aura: When skipping frames, ensure next frame damages what was skipped. > > In the delegated path, if we skip a frame, we are just dropping the > damage. If the resize lock times out, we can end up swapping a partial > frame that is out of sync with the rest of the visible content. > > Since we always have all the quads available to us (unlike the old > double-buffered texture path), when we stop skipping a frame, just > damage the whole RenderWidgetHostView to ensure we draw the skipped > frames' damage. > > Refactors ResizeLock out so that we can fake it out in tests. > > Tests: > RenderWidgetHostViewAuraTest.SkippedDelegatedFrames > > R=jbauman, piman > BUG=288993 > Depends on: https://codereview.chromium.org/23506032/ > > Review URL: https://chromiumcodereview.appspot.com/23496042 TBR=danakj@chromium.org Review URL: https://codereview.chromium.org/23455052 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223142 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/aura/resize_lock.h')
-rw-r--r--content/browser/aura/resize_lock.h37
1 files changed, 0 insertions, 37 deletions
diff --git a/content/browser/aura/resize_lock.h b/content/browser/aura/resize_lock.h
deleted file mode 100644
index cff9822..0000000
--- a/content/browser/aura/resize_lock.h
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright 2013 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 CONTENT_BROWSER_AURA_RESIZE_LOCK_H_
-#define CONTENT_BROWSER_AURA_RESIZE_LOCK_H_
-
-#include "base/basictypes.h"
-#include "content/common/content_export.h"
-#include "ui/gfx/size.h"
-
-namespace content {
-
-class CONTENT_EXPORT ResizeLock {
- public:
- virtual ~ResizeLock();
-
- virtual bool GrabDeferredLock();
- virtual void UnlockCompositor();
-
- const gfx::Size& expected_size() const { return new_size_; }
-
- protected:
- ResizeLock(const gfx::Size new_size, bool defer_compositor_lock);
-
- virtual void LockCompositor();
-
- private:
- gfx::Size new_size_;
- bool defer_compositor_lock_;
-
- DISALLOW_COPY_AND_ASSIGN(ResizeLock);
-};
-
-} // namespace content
-
-#endif // CONTENT_BROWSER_AURA_RESIZE_LOCK_H_