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

Side by Side Diff: cc/texture_layer_impl.h

Issue 11567034: Changes subtreeShouldRenderToSeparateSurface logic to account for explicit clipping (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: re-adding a previously removed check of the transforms between a layer and its child Created 8 years 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 unified diff | Download patch | Annotate | Revision Log
« cc/layer_tree_host_common.cc ('K') | « cc/texture_layer.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_TEXTURE_LAYER_IMPL_H_ 5 #ifndef CC_TEXTURE_LAYER_IMPL_H_
6 #define CC_TEXTURE_LAYER_IMPL_H_ 6 #define CC_TEXTURE_LAYER_IMPL_H_
7 7
8 #include "cc/cc_export.h" 8 #include "cc/cc_export.h"
9 #include "cc/layer_impl.h" 9 #include "cc/layer_impl.h"
10 10
(...skipping 14 matching lines...) Expand all
25 virtual void didLoseOutputSurface() OVERRIDE; 25 virtual void didLoseOutputSurface() OVERRIDE;
26 26
27 virtual void dumpLayerProperties(std::string*, int indent) const OVERRIDE; 27 virtual void dumpLayerProperties(std::string*, int indent) const OVERRIDE;
28 28
29 unsigned textureId() const { return m_textureId; } 29 unsigned textureId() const { return m_textureId; }
30 void setTextureId(unsigned id) { m_textureId = id; } 30 void setTextureId(unsigned id) { m_textureId = id; }
31 void setPremultipliedAlpha(bool premultipliedAlpha) { m_premultipliedAlpha = premultipliedAlpha; } 31 void setPremultipliedAlpha(bool premultipliedAlpha) { m_premultipliedAlpha = premultipliedAlpha; }
32 void setFlipped(bool flipped) { m_flipped = flipped; } 32 void setFlipped(bool flipped) { m_flipped = flipped; }
33 void setUVRect(const gfx::RectF& rect) { m_uvRect = rect; } 33 void setUVRect(const gfx::RectF& rect) { m_uvRect = rect; }
34 34
35 bool CanClipSelf() const OVERRIDE { return true; }
36
35 private: 37 private:
36 TextureLayerImpl(LayerTreeImpl* treeImpl, int id); 38 TextureLayerImpl(LayerTreeImpl* treeImpl, int id);
37 39
38 virtual const char* layerTypeAsString() const OVERRIDE; 40 virtual const char* layerTypeAsString() const OVERRIDE;
39 41
40 unsigned m_textureId; 42 unsigned m_textureId;
41 ResourceProvider::ResourceId m_externalTextureResource; 43 ResourceProvider::ResourceId m_externalTextureResource;
42 bool m_premultipliedAlpha; 44 bool m_premultipliedAlpha;
43 bool m_flipped; 45 bool m_flipped;
44 gfx::RectF m_uvRect; 46 gfx::RectF m_uvRect;
45 }; 47 };
46 48
47 } 49 }
48 50
49 #endif // CC_TEXTURE_LAYER_IMPL_H_ 51 #endif // CC_TEXTURE_LAYER_IMPL_H_
OLDNEW
« cc/layer_tree_host_common.cc ('K') | « cc/texture_layer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698