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

Side by Side Diff: Source/WebCore/platform/graphics/chromium/TextureLayerChromium.h

Issue 10384160: Merge 116722 - Sync with impl thread when removing references to external textures (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1132/
Patch Set: Created 8 years, 7 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
« no previous file with comments | « no previous file | Source/WebCore/platform/graphics/chromium/TextureLayerChromium.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // Sets whether this context should rate limit on damage to prevent too many frames from 72 // Sets whether this context should rate limit on damage to prevent too many frames from
73 // being queued up before the compositor gets a chance to run. Requires a no n-nil client. 73 // being queued up before the compositor gets a chance to run. Requires a no n-nil client.
74 // Defaults to false. 74 // Defaults to false.
75 void setRateLimitContext(bool); 75 void setRateLimitContext(bool);
76 76
77 // Code path for plugins which supply their own texture ID. 77 // Code path for plugins which supply their own texture ID.
78 void setTextureId(unsigned); 78 void setTextureId(unsigned);
79 79
80 virtual void setNeedsDisplayRect(const FloatRect&) OVERRIDE; 80 virtual void setNeedsDisplayRect(const FloatRect&) OVERRIDE;
81 81
82 virtual void setLayerTreeHost(CCLayerTreeHost*) OVERRIDE;
82 virtual bool drawsContent() const OVERRIDE; 83 virtual bool drawsContent() const OVERRIDE;
83 virtual void update(CCTextureUpdater&, const CCOcclusionTracker*) OVERRIDE; 84 virtual void update(CCTextureUpdater&, const CCOcclusionTracker*) OVERRIDE;
84 virtual void pushPropertiesTo(CCLayerImpl*) OVERRIDE; 85 virtual void pushPropertiesTo(CCLayerImpl*) OVERRIDE;
85 86
86 protected: 87 protected:
87 explicit TextureLayerChromium(TextureLayerChromiumClient*); 88 explicit TextureLayerChromium(TextureLayerChromiumClient*);
88 89
89 private: 90 private:
90 TextureLayerChromiumClient* m_client; 91 TextureLayerChromiumClient* m_client;
91 92
92 bool m_flipped; 93 bool m_flipped;
93 FloatRect m_uvRect; 94 FloatRect m_uvRect;
94 bool m_premultipliedAlpha; 95 bool m_premultipliedAlpha;
95 bool m_rateLimitContext; 96 bool m_rateLimitContext;
96 bool m_contextLost; 97 bool m_contextLost;
97 98
98 unsigned m_textureId; 99 unsigned m_textureId;
99 }; 100 };
100 101
101 } 102 }
102 #endif // USE(ACCELERATED_COMPOSITING) 103 #endif // USE(ACCELERATED_COMPOSITING)
103 104
104 #endif 105 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/WebCore/platform/graphics/chromium/TextureLayerChromium.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698