summaryrefslogtreecommitdiffstats
path: root/ui/views
diff options
context:
space:
mode:
authorpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-09 22:14:17 +0000
committerpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-09 22:14:17 +0000
commit4508b15bef1094ccf68771f40f7b61013fee43ff (patch)
treea465e41f18421640c86ebb5326885397eb3b9e79 /ui/views
parenta4139bb350549d2fefed191f2fb3c98fdfa42d41 (diff)
downloadchromium_src-4508b15bef1094ccf68771f40f7b61013fee43ff.zip
chromium_src-4508b15bef1094ccf68771f40f7b61013fee43ff.tar.gz
chromium_src-4508b15bef1094ccf68771f40f7b61013fee43ff.tar.bz2
Make ReflectorImpl use mailboxes
- fixes ui::Layer::SetTextureMailbox to not be hard-coded for software frames. - adds a ui::Layer::SetTextureSize to update the size without sending a new mailbox (since it doesn't change). - entirely removes ui::Layer::SetExternalTexture and ui::Texture, and derived classes. - significantly changes the ReflectorImpl implementation: * an OwnedMailbox is created on the main thread, using the shared main thread context. * the mailbox is passed to the impl thread, that creates a texture out of it with the OutputSurface context, and does operations on that. * the mailbox is passed to the layer. * if the OutputSurface is recreated (assuming, after a lost context), the OwnedMailbox is recreated, and passed to the impl side again, together with the new surface. * the OwnedMailbox takes care of deleting the texture, whether because of a lost context, or when the ReflectorImpl is shut down. BUG=333408 R=danakj@chromium.org, oshima@chromium.org, sky@chromium.org Review URL: https://codereview.chromium.org/228083002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@262836 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/views')
-rw-r--r--ui/views/view.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/views/view.cc b/ui/views/view.cc
index dd09f88..6c9c3a1 100644
--- a/ui/views/view.cc
+++ b/ui/views/view.cc
@@ -1690,7 +1690,7 @@ std::string View::DoPrintViewGraph(bool first, View* view_with_children) {
if (!parent_)
result.append(", shape=box");
if (layer()) {
- if (layer()->texture())
+ if (layer()->has_external_content())
result.append(", color=green");
else
result.append(", color=red");