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

Unified Diff: cc/layers/texture_layer_impl.h

Issue 1057283003: Remove parts of //cc we aren't using (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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/layers/texture_layer_client.h ('k') | cc/layers/texture_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/texture_layer_impl.h
diff --git a/cc/layers/texture_layer_impl.h b/cc/layers/texture_layer_impl.h
deleted file mode 100644
index 3d2c1659a281753793a088582c2a09ba54a8485d..0000000000000000000000000000000000000000
--- a/cc/layers/texture_layer_impl.h
+++ /dev/null
@@ -1,83 +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_LAYERS_TEXTURE_LAYER_IMPL_H_
-#define CC_LAYERS_TEXTURE_LAYER_IMPL_H_
-
-#include <string>
-
-#include "base/callback.h"
-#include "cc/base/cc_export.h"
-#include "cc/layers/layer_impl.h"
-
-namespace cc {
-class SingleReleaseCallbackImpl;
-class ScopedResource;
-
-class CC_EXPORT TextureLayerImpl : public LayerImpl {
- public:
- static scoped_ptr<TextureLayerImpl> Create(LayerTreeImpl* tree_impl, int id) {
- return make_scoped_ptr(new TextureLayerImpl(tree_impl, id));
- }
- ~TextureLayerImpl() override;
-
- scoped_ptr<LayerImpl> CreateLayerImpl(
- LayerTreeImpl* layer_tree_impl) override;
- void PushPropertiesTo(LayerImpl* layer) override;
-
- bool WillDraw(DrawMode draw_mode,
- ResourceProvider* resource_provider) override;
- void AppendQuads(RenderPass* render_pass,
- AppendQuadsData* append_quads_data) override;
- SimpleEnclosedRegion VisibleContentOpaqueRegion() const override;
- void ReleaseResources() override;
-
- // These setter methods don't cause any implicit damage, so the texture client
- // must explicitly invalidate if they intend to cause a visible change in the
- // layer's output.
- void SetTextureId(unsigned id);
- void SetPremultipliedAlpha(bool premultiplied_alpha);
- void SetBlendBackgroundColor(bool blend);
- void SetFlipped(bool flipped);
- void SetNearestNeighbor(bool nearest_neighbor);
- void SetUVTopLeft(const gfx::PointF top_left);
- void SetUVBottomRight(const gfx::PointF bottom_right);
-
- // 1--2
- // | |
- // 0--3
- void SetVertexOpacity(const float vertex_opacity[4]);
-
- void SetTextureMailbox(
- const TextureMailbox& mailbox,
- scoped_ptr<SingleReleaseCallbackImpl> release_callback);
-
- private:
- TextureLayerImpl(LayerTreeImpl* tree_impl, int id);
-
- const char* LayerTypeAsString() const override;
- void FreeTextureMailbox();
-
- ResourceProvider::ResourceId external_texture_resource_;
- bool premultiplied_alpha_;
- bool blend_background_color_;
- bool flipped_;
- bool nearest_neighbor_;
- gfx::PointF uv_top_left_;
- gfx::PointF uv_bottom_right_;
- float vertex_opacity_[4];
- // This is a resource that's a GL copy of a software texture mailbox.
- scoped_ptr<ScopedResource> texture_copy_;
-
- TextureMailbox texture_mailbox_;
- scoped_ptr<SingleReleaseCallbackImpl> release_callback_;
- bool own_mailbox_;
- bool valid_texture_copy_;
-
- DISALLOW_COPY_AND_ASSIGN(TextureLayerImpl);
-};
-
-} // namespace cc
-
-#endif // CC_LAYERS_TEXTURE_LAYER_IMPL_H_
« no previous file with comments | « cc/layers/texture_layer_client.h ('k') | cc/layers/texture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698