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

Unified Diff: ui/gfx/compositor/test/test_compositor.h

Issue 8805033: Makes tests either use mock compositor or mock WebGraphicsContext3D (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tweaks Created 9 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
Index: ui/gfx/compositor/test/test_compositor.h
diff --git a/ui/gfx/compositor/test/test_compositor.h b/ui/gfx/compositor/test/test_compositor.h
deleted file mode 100644
index 8cfc251529a91948917a5b526af6299d691da09f..0000000000000000000000000000000000000000
--- a/ui/gfx/compositor/test/test_compositor.h
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright (c) 2011 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_GFX_COMPOSITOR_TEST_TEST_COMPOSITOR_H_
-#define UI_GFX_COMPOSITOR_TEST_TEST_COMPOSITOR_H_
-#pragma once
-
-#include "base/basictypes.h"
-#include "base/memory/scoped_ptr.h"
-#include "base/compiler_specific.h"
-#include "ui/gfx/compositor/compositor.h"
-
-namespace ui {
-
-class TestCompositorDelegate;
-
-// Trivial Compositor implementation that creates Textures of type TestTexture.
-class TestCompositor : public ui::Compositor {
- public:
- explicit TestCompositor(CompositorDelegate* owner);
- virtual ~TestCompositor();
-
- // ui::Compositor:
- virtual ui::Texture* CreateTexture() OVERRIDE;
- virtual void OnNotifyStart(bool clear) OVERRIDE;
- virtual void OnNotifyEnd() OVERRIDE;
- virtual void Blur(const gfx::Rect& bounds) OVERRIDE;
- virtual void DrawTree() OVERRIDE;
- virtual bool ReadPixels(SkBitmap* bitmap, const gfx::Rect& bounds) OVERRIDE;
-
- // A simple factory that creates a test compositor with a given delegate
- static ui::Compositor* Create(ui::CompositorDelegate* owner);
-
- protected:
- virtual void OnWidgetSizeChanged() OVERRIDE;
-
- private:
- scoped_ptr<TestCompositorDelegate> owned_delegate_;
-
- DISALLOW_COPY_AND_ASSIGN(TestCompositor);
-};
-
-} // namespace ui
-
-#endif // UI_GFX_COMPOSITOR_TEST_TEST_COMPOSITOR_H_

Powered by Google App Engine
This is Rietveld 408576698