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

Unified Diff: cc/texture_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/texture_layer_client.h ('k') | cc/texture_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/texture_layer_impl.h
diff --git a/cc/texture_layer_impl.h b/cc/texture_layer_impl.h
deleted file mode 100644
index d59c11f61b97e0381e65f96a5d89f8a926ee3e00..0000000000000000000000000000000000000000
--- a/cc/texture_layer_impl.h
+++ /dev/null
@@ -1,87 +0,0 @@
-// Copyright 2012 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_TEXTURE_LAYER_IMPL_H_
-#define CC_TEXTURE_LAYER_IMPL_H_
-
-#include <string>
-
-#include "base/callback.h"
-#include "cc/base/cc_export.h"
-#include "cc/layer_impl.h"
-
-namespace cc {
-
-class CC_EXPORT TextureLayerImpl : public LayerImpl {
- public:
- static scoped_ptr<TextureLayerImpl> Create(LayerTreeImpl* tree_impl,
- int id,
- bool uses_mailbox) {
- return make_scoped_ptr(new TextureLayerImpl(tree_impl, id, uses_mailbox));
- }
- virtual ~TextureLayerImpl();
-
- virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* layer_tree_impl)
- OVERRIDE;
- virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE;
-
- virtual void WillDraw(ResourceProvider* resource_provider) OVERRIDE;
- virtual void AppendQuads(QuadSink* quad_sink,
- AppendQuadsData* append_quads_data) OVERRIDE;
- virtual void DidDraw(ResourceProvider* resource_provider) OVERRIDE;
-
- virtual void DidLoseOutputSurface() OVERRIDE;
-
- virtual void DumpLayerProperties(std::string* str, int indent) const OVERRIDE;
- virtual void DidBecomeActive() OVERRIDE;
-
- unsigned texture_id() const { return texture_id_; }
- void set_texture_id(unsigned id) { texture_id_ = id; }
- void set_premultiplied_alpha(bool premultiplied_alpha) {
- premultiplied_alpha_ = premultiplied_alpha;
- }
- void set_flipped(bool flipped) { flipped_ = flipped; }
- void set_uv_top_left(gfx::PointF top_left) { uv_top_left_ = top_left; }
- void set_uv_bottom_right(gfx::PointF bottom_right) {
- uv_bottom_right_ = bottom_right;
- }
-
- // 1--2
- // | |
- // 0--3
- void set_vertex_opacity(const float vertex_opacity[4]) {
- vertex_opacity_[0] = vertex_opacity[0];
- vertex_opacity_[1] = vertex_opacity[1];
- vertex_opacity_[2] = vertex_opacity[2];
- vertex_opacity_[3] = vertex_opacity[3];
- }
-
- virtual bool CanClipSelf() const OVERRIDE;
-
- void SetTextureMailbox(const TextureMailbox& mailbox);
-
- private:
- TextureLayerImpl(LayerTreeImpl* tree_impl, int id, bool uses_mailbox);
-
- virtual const char* LayerTypeAsString() const OVERRIDE;
- void FreeTextureMailbox();
-
- unsigned texture_id_;
- ResourceProvider::ResourceId external_texture_resource_;
- bool premultiplied_alpha_;
- bool flipped_;
- gfx::PointF uv_top_left_;
- gfx::PointF uv_bottom_right_;
- float vertex_opacity_[4];
-
- TextureMailbox texture_mailbox_;
- bool uses_mailbox_;
- bool own_mailbox_;
-
- DISALLOW_COPY_AND_ASSIGN(TextureLayerImpl);
-};
-
-} // namespace cc
-
-#endif // CC_TEXTURE_LAYER_IMPL_H_
« no previous file with comments | « cc/texture_layer_client.h ('k') | cc/texture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698