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

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

Issue 9297041: Merge Compositor and CompositorCC (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 11 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 | « ui/gfx/compositor/test/test_suite.cc ('k') | ui/gfx/compositor/test/test_texture.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/compositor/test/test_texture.h
diff --git a/ui/gfx/compositor/test/test_texture.h b/ui/gfx/compositor/test/test_texture.h
deleted file mode 100644
index 1d788943628e22f9bb6a53796f3348edb4f250d6..0000000000000000000000000000000000000000
--- a/ui/gfx/compositor/test/test_texture.h
+++ /dev/null
@@ -1,50 +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_TEXTURE_H_
-#define UI_GFX_COMPOSITOR_TEST_TEST_TEXTURE_H_
-#pragma once
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "ui/gfx/compositor/compositor.h"
-#include "ui/gfx/rect.h"
-
-namespace ui {
-
-// Texture implementation that TextCompositor creates. Doesn't actually draw
-// anything.
-class TestTexture : public ui::Texture {
- public:
- TestTexture();
- virtual ~TestTexture();
-
- // Number of textures that have been created.
- static void reset_live_count() { live_count_ = 0; }
- static int live_count() { return live_count_; }
-
- // Bounds of the last bitmap passed to SetCanvas.
- const gfx::Rect& bounds_of_last_paint() const {
- return bounds_of_last_paint_;
- }
-
- // ui::Texture
- virtual void SetCanvas(const SkCanvas& canvas,
- const gfx::Point& origin,
- const gfx::Size& overall_size) OVERRIDE;
- virtual void Draw(const ui::TextureDrawParams& params,
- const gfx::Rect& clip_bounds) OVERRIDE;
-
- private:
- // Number of live instances.
- static int live_count_;
-
- gfx::Rect bounds_of_last_paint_;
-
- DISALLOW_COPY_AND_ASSIGN(TestTexture);
-};
-
-} // namespace ui
-
-#endif // UI_GFX_COMPOSITOR_TEST_TEST_TEXTURE_H_
« no previous file with comments | « ui/gfx/compositor/test/test_suite.cc ('k') | ui/gfx/compositor/test/test_texture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698