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

Unified Diff: cc/tiled_layer_impl.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/tiled_layer.cc ('k') | cc/tiled_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tiled_layer_impl.h
diff --git a/cc/tiled_layer_impl.h b/cc/tiled_layer_impl.h
deleted file mode 100644
index d3d23bdac92ec4f191412d0b3a4901f5b013cdcc..0000000000000000000000000000000000000000
--- a/cc/tiled_layer_impl.h
+++ /dev/null
@@ -1,70 +0,0 @@
-// Copyright 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 CC_TILED_LAYER_IMPL_H_
-#define CC_TILED_LAYER_IMPL_H_
-
-#include "cc/base/cc_export.h"
-#include "cc/layer_impl.h"
-
-namespace cc {
-
-class LayerTilingData;
-class DrawableTile;
-
-class CC_EXPORT TiledLayerImpl : public LayerImpl {
- public:
- static scoped_ptr<TiledLayerImpl> Create(LayerTreeImpl* tree_impl, int id) {
- return make_scoped_ptr(new TiledLayerImpl(tree_impl, id));
- }
- virtual ~TiledLayerImpl();
-
- virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl)
- OVERRIDE;
- virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE;
-
- virtual void AppendQuads(QuadSink* quad_sink,
- AppendQuadsData* append_quads_data) OVERRIDE;
-
- virtual ResourceProvider::ResourceId ContentsResourceId() const OVERRIDE;
-
- virtual void DumpLayerProperties(std::string* str, int indent) const OVERRIDE;
-
- void set_skips_draw(bool skips_draw) { skips_draw_ = skips_draw; }
- void SetTilingData(const LayerTilingData& tiler);
- void PushTileProperties(int i,
- int j,
- ResourceProvider::ResourceId resource,
- gfx::Rect opaque_rect,
- bool contents_swizzled);
- void PushInvalidTile(int i, int j);
-
- virtual Region VisibleContentOpaqueRegion() const OVERRIDE;
- virtual void DidLoseOutputSurface() OVERRIDE;
-
- protected:
- TiledLayerImpl(LayerTreeImpl* tree_impl, int id);
- // Exposed for testing.
- bool HasTileAt(int i, int j) const;
- bool HasResourceIdForTileAt(int i, int j) const;
-
- virtual void GetDebugBorderProperties(SkColor* color, float* width) const
- OVERRIDE;
-
- private:
- virtual const char* LayerTypeAsString() const OVERRIDE;
-
- DrawableTile* TileAt(int i, int j) const;
- DrawableTile* CreateTile(int i, int j);
-
- bool skips_draw_;
-
- scoped_ptr<LayerTilingData> tiler_;
-
- DISALLOW_COPY_AND_ASSIGN(TiledLayerImpl);
-};
-
-} // namespace cc
-
-#endif // CC_TILED_LAYER_IMPL_H_
« no previous file with comments | « cc/tiled_layer.cc ('k') | cc/tiled_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698