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

Unified Diff: cc/image_layer.h

Issue 12603013: Part 10 of cc/ directory shuffles: layers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 | « cc/heads_up_display_unittest.cc ('k') | cc/image_layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/image_layer.h
diff --git a/cc/image_layer.h b/cc/image_layer.h
deleted file mode 100644
index 4608affc93d6596092ce9ddfa5ce3ebc0982acd3..0000000000000000000000000000000000000000
--- a/cc/image_layer.h
+++ /dev/null
@@ -1,56 +0,0 @@
-// Copyright 2010 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 CC_IMAGE_LAYER_H_
-#define CC_IMAGE_LAYER_H_
-
-#include "cc/base/cc_export.h"
-#include "cc/content_layer.h"
-#include "third_party/skia/include/core/SkBitmap.h"
-
-namespace cc {
-
-class ImageLayerUpdater;
-
-// A Layer that contains only an Image element.
-class CC_EXPORT ImageLayer : public TiledLayer {
- public:
- static scoped_refptr<ImageLayer> Create();
-
- // Layer implementation.
- virtual bool DrawsContent() const OVERRIDE;
- virtual void SetTexturePriorities(const PriorityCalculator& priority_calc)
- OVERRIDE;
- virtual void Update(ResourceUpdateQueue* queue,
- const OcclusionTracker* occlusion,
- RenderingStats* stats) OVERRIDE;
- virtual void CalculateContentsScale(float ideal_contents_scale,
- bool animating_transform_to_screen,
- float* contents_scale_x,
- float* contents_scale_y,
- gfx::Size* content_bounds) OVERRIDE;
-
- void SetBitmap(const SkBitmap& image);
-
- private:
- ImageLayer();
- virtual ~ImageLayer();
-
- // TiledLayer Implementation.
- virtual LayerUpdater* Updater() const OVERRIDE;
- virtual void CreateUpdaterIfNeeded() OVERRIDE;
-
- float ImageContentsScaleX() const;
- float ImageContentsScaleY() const;
-
- SkBitmap bitmap_;
-
- scoped_refptr<ImageLayerUpdater> updater_;
-
- DISALLOW_COPY_AND_ASSIGN(ImageLayer);
-};
-
-} // namespace cc
-
-#endif // CC_IMAGE_LAYER_H_
« no previous file with comments | « cc/heads_up_display_unittest.cc ('k') | cc/image_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698