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

Side by Side Diff: ui/gfx/compositor/layer.h

Issue 8547014: A few less TOUCH_UIs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 | « no previous file | ui/gfx/compositor/test/test_compositor_host_linux.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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 UI_GFX_COMPOSITOR_LAYER_H_ 5 #ifndef UI_GFX_COMPOSITOR_LAYER_H_
6 #define UI_GFX_COMPOSITOR_LAYER_H_ 6 #define UI_GFX_COMPOSITOR_LAYER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 void ScheduleDraw(); 172 void ScheduleDraw();
173 173
174 // Does drawing for the layer. 174 // Does drawing for the layer.
175 void Draw(); 175 void Draw();
176 176
177 // Draws a tree of Layers, by calling Draw() on each in the hierarchy starting 177 // Draws a tree of Layers, by calling Draw() on each in the hierarchy starting
178 // with the receiver. 178 // with the receiver.
179 void DrawTree(); 179 void DrawTree();
180 180
181 // Sometimes the Layer is being updated by something other than SetCanvas 181 // Sometimes the Layer is being updated by something other than SetCanvas
182 // (e.g. the GPU process on TOUCH_UI). 182 // (e.g. the GPU process on UI_COMPOSITOR_IMAGE_TRANSPORT).
183 bool layer_updated_externally() const { return layer_updated_externally_; } 183 bool layer_updated_externally() const { return layer_updated_externally_; }
184 184
185 // WebLayerClient 185 // WebLayerClient
186 virtual void notifyNeedsComposite(); 186 virtual void notifyNeedsComposite();
187 187
188 // WebContentLayerClient 188 // WebContentLayerClient
189 virtual void paintContents(WebKit::WebCanvas*, const WebKit::WebRect& clip); 189 virtual void paintContents(WebKit::WebCanvas*, const WebKit::WebRect& clip);
190 190
191 #if defined(USE_WEBKIT_COMPOSITOR) 191 #if defined(USE_WEBKIT_COMPOSITOR)
192 WebKit::WebLayer web_layer() { return web_layer_; } 192 WebKit::WebLayer web_layer() { return web_layer_; }
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 WebKit::WebLayer web_layer_; 333 WebKit::WebLayer web_layer_;
334 bool web_layer_is_accelerated_; 334 bool web_layer_is_accelerated_;
335 #endif 335 #endif
336 336
337 DISALLOW_COPY_AND_ASSIGN(Layer); 337 DISALLOW_COPY_AND_ASSIGN(Layer);
338 }; 338 };
339 339
340 } // namespace ui 340 } // namespace ui
341 341
342 #endif // UI_GFX_COMPOSITOR_LAYER_H_ 342 #endif // UI_GFX_COMPOSITOR_LAYER_H_
OLDNEW
« no previous file with comments | « no previous file | ui/gfx/compositor/test/test_compositor_host_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698