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

Side by Side Diff: cc/texture_layer.h

Issue 11567034: Changes subtreeShouldRenderToSeparateSurface logic to account for explicit clipping (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: very minor change Created 7 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/texture_draw_quad.cc ('k') | cc/texture_layer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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_H_ 5 #ifndef CC_TEXTURE_LAYER_H_
6 #define CC_TEXTURE_LAYER_H_ 6 #define CC_TEXTURE_LAYER_H_
7 7
8 #include "cc/cc_export.h" 8 #include "cc/cc_export.h"
9 #include "cc/layer.h" 9 #include "cc/layer.h"
10 10
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 void willModifyTexture(); 51 void willModifyTexture();
52 52
53 virtual void setNeedsDisplayRect(const gfx::RectF&) OVERRIDE; 53 virtual void setNeedsDisplayRect(const gfx::RectF&) OVERRIDE;
54 54
55 virtual void setLayerTreeHost(LayerTreeHost*) OVERRIDE; 55 virtual void setLayerTreeHost(LayerTreeHost*) OVERRIDE;
56 virtual bool drawsContent() const OVERRIDE; 56 virtual bool drawsContent() const OVERRIDE;
57 virtual void update(ResourceUpdateQueue&, const OcclusionTracker*, Rendering Stats&) OVERRIDE; 57 virtual void update(ResourceUpdateQueue&, const OcclusionTracker*, Rendering Stats&) OVERRIDE;
58 virtual void pushPropertiesTo(LayerImpl*) OVERRIDE; 58 virtual void pushPropertiesTo(LayerImpl*) OVERRIDE;
59 virtual bool blocksPendingCommit() const OVERRIDE; 59 virtual bool blocksPendingCommit() const OVERRIDE;
60 60
61 virtual bool canClipSelf() const OVERRIDE;
62
61 protected: 63 protected:
62 explicit TextureLayer(TextureLayerClient*); 64 explicit TextureLayer(TextureLayerClient*);
63 virtual ~TextureLayer(); 65 virtual ~TextureLayer();
64 66
65 private: 67 private:
66 TextureLayerClient* m_client; 68 TextureLayerClient* m_client;
67 69
68 bool m_flipped; 70 bool m_flipped;
69 gfx::RectF m_uvRect; 71 gfx::RectF m_uvRect;
70 // [bottom left, top left, top right, bottom right] 72 // [bottom left, top left, top right, bottom right]
71 float m_vertexOpacity[4]; 73 float m_vertexOpacity[4];
72 bool m_premultipliedAlpha; 74 bool m_premultipliedAlpha;
73 bool m_rateLimitContext; 75 bool m_rateLimitContext;
74 bool m_contextLost; 76 bool m_contextLost;
75 bool m_contentCommitted; 77 bool m_contentCommitted;
76 78
77 unsigned m_textureId; 79 unsigned m_textureId;
78 }; 80 };
79 81
80 } 82 }
81 #endif // CC_TEXTURE_LAYER_H_ 83 #endif // CC_TEXTURE_LAYER_H_
OLDNEW
« no previous file with comments | « cc/texture_draw_quad.cc ('k') | cc/texture_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698