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

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

Issue 10942034: Revert 156318 - I had originally tried to build upon http://codereview.chromium.org/10869066/, but … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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 | « no previous file | ui/compositor/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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_COMPOSITOR_LAYER_H_ 5 #ifndef UI_COMPOSITOR_LAYER_H_
6 #define UI_COMPOSITOR_LAYER_H_ 6 #define UI_COMPOSITOR_LAYER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 Layer* layer_mask_; 369 Layer* layer_mask_;
370 // The back link from the mask layer to it's associated masked layer. 370 // The back link from the mask layer to it's associated masked layer.
371 // We keep this reference for the case that if the mask layer gets deleted 371 // We keep this reference for the case that if the mask layer gets deleted
372 // while attached to the main layer before the main layer is deleted. 372 // while attached to the main layer before the main layer is deleted.
373 Layer* layer_mask_back_link_; 373 Layer* layer_mask_back_link_;
374 374
375 std::string name_; 375 std::string name_;
376 376
377 LayerDelegate* delegate_; 377 LayerDelegate* delegate_;
378 378
379 scoped_refptr<LayerAnimator> animator_; 379 scoped_ptr<LayerAnimator> animator_;
380 380
381 // Ownership of the layer is held through one of the strongly typed layer 381 // Ownership of the layer is held through one of the strongly typed layer
382 // pointers, depending on which sort of layer this is. 382 // pointers, depending on which sort of layer this is.
383 scoped_ptr<WebKit::WebContentLayer> content_layer_; 383 scoped_ptr<WebKit::WebContentLayer> content_layer_;
384 scoped_ptr<WebKit::WebExternalTextureLayer> texture_layer_; 384 scoped_ptr<WebKit::WebExternalTextureLayer> texture_layer_;
385 scoped_ptr<WebKit::WebSolidColorLayer> solid_color_layer_; 385 scoped_ptr<WebKit::WebSolidColorLayer> solid_color_layer_;
386 WebKit::WebLayer* web_layer_; 386 WebKit::WebLayer* web_layer_;
387 bool web_layer_is_accelerated_; 387 bool web_layer_is_accelerated_;
388 bool show_debug_borders_; 388 bool show_debug_borders_;
389 389
390 // If true, the layer scales the canvas and the texture with the device scale 390 // If true, the layer scales the canvas and the texture with the device scale
391 // factor as appropriate. When true, the texture size is in DIP. 391 // factor as appropriate. When true, the texture size is in DIP.
392 bool scale_content_; 392 bool scale_content_;
393 393
394 // A cached copy of |Compositor::device_scale_factor()|. 394 // A cached copy of |Compositor::device_scale_factor()|.
395 float device_scale_factor_; 395 float device_scale_factor_;
396 396
397 DISALLOW_COPY_AND_ASSIGN(Layer); 397 DISALLOW_COPY_AND_ASSIGN(Layer);
398 }; 398 };
399 399
400 } // namespace ui 400 } // namespace ui
401 401
402 #endif // UI_COMPOSITOR_LAYER_H_ 402 #endif // UI_COMPOSITOR_LAYER_H_
OLDNEW
« no previous file with comments | « no previous file | ui/compositor/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698