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

Side by Side Diff: Source/WebKit/chromium/src/WebLayerTreeView.cpp

Issue 10199014: Merge 114800 - [chromium] Plumb a compositor surface ready notification through to the threaded com… (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1084/
Patch Set: Created 8 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 { 67 {
68 return (m_private.get() == n.m_private.get()); 68 return (m_private.get() == n.m_private.get());
69 } 69 }
70 70
71 bool WebLayerTreeView::initialize(WebLayerTreeViewClient* client, const WebLayer & root, const WebLayerTreeView::Settings& settings) 71 bool WebLayerTreeView::initialize(WebLayerTreeViewClient* client, const WebLayer & root, const WebLayerTreeView::Settings& settings)
72 { 72 {
73 m_private = WebLayerTreeViewImpl::create(client, root, settings); 73 m_private = WebLayerTreeViewImpl::create(client, root, settings);
74 return !isNull(); 74 return !isNull();
75 } 75 }
76 76
77 void WebLayerTreeView::setSurfaceReady()
78 {
79 m_private->setSurfaceReady();
80 }
81
77 void WebLayerTreeView::setRootLayer(WebLayer *root) 82 void WebLayerTreeView::setRootLayer(WebLayer *root)
78 { 83 {
79 if (root) 84 if (root)
80 m_private->setRootLayer(*root); 85 m_private->setRootLayer(*root);
81 else 86 else
82 m_private->setRootLayer(PassRefPtr<LayerChromium>()); 87 m_private->setRootLayer(PassRefPtr<LayerChromium>());
83 } 88 }
84 89
85 int WebLayerTreeView::compositorIdentifier() 90 int WebLayerTreeView::compositorIdentifier()
86 { 91 {
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 { 164 {
160 return GraphicsContext3DPrivate::extractWebGraphicsContext3D(m_private->cont ext()); 165 return GraphicsContext3DPrivate::extractWebGraphicsContext3D(m_private->cont ext());
161 } 166 }
162 167
163 void WebLayerTreeView::loseCompositorContext(int numTimes) 168 void WebLayerTreeView::loseCompositorContext(int numTimes)
164 { 169 {
165 m_private->loseContext(numTimes); 170 m_private->loseContext(numTimes);
166 } 171 }
167 172
168 } // namespace WebKit 173 } // namespace WebKit
OLDNEW
« no previous file with comments | « Source/WebKit/chromium/public/WebWidget.h ('k') | Source/WebKit/chromium/src/WebPopupMenuImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698