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

Side by Side Diff: cc/layers/layer_impl.h

Issue 13863015: Add flag for drawing layers to screen with Ganesh (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Stencil buffer support, --draw-layers-with-ganesh Created 7 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 | Annotate | Revision Log
« no previous file with comments | « cc/debug/debug_colors.cc ('k') | cc/layers/layer_impl.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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 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 CC_LAYERS_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_LAYER_IMPL_H_
6 #define CC_LAYERS_LAYER_IMPL_H_ 6 #define CC_LAYERS_LAYER_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 419
420 void AsValueInto(base::DictionaryValue* dict) const; 420 void AsValueInto(base::DictionaryValue* dict) const;
421 421
422 void NoteLayerSurfacePropertyChanged(); 422 void NoteLayerSurfacePropertyChanged();
423 void NoteLayerPropertyChanged(); 423 void NoteLayerPropertyChanged();
424 void NoteLayerPropertyChangedForSubtree(); 424 void NoteLayerPropertyChangedForSubtree();
425 425
426 // Note carefully this does not affect the current layer. 426 // Note carefully this does not affect the current layer.
427 void NoteLayerPropertyChangedForDescendants(); 427 void NoteLayerPropertyChangedForDescendants();
428 428
429 bool CanDrawDirectlyToBackbuffer() const;
430
429 private: 431 private:
430 void UpdateScrollbarPositions(); 432 void UpdateScrollbarPositions();
431 433
432 virtual const char* LayerTypeAsString() const; 434 virtual const char* LayerTypeAsString() const;
433 435
434 void DumpLayer(std::string* str, int indent) const; 436 void DumpLayer(std::string* str, int indent) const;
435 437
436 // Properties internal to LayerImpl 438 // Properties internal to LayerImpl
437 LayerImpl* parent_; 439 LayerImpl* parent_;
438 OwnedLayerImplList children_; 440 OwnedLayerImplList children_;
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 // Group of properties that need to be computed based on the layer tree 534 // Group of properties that need to be computed based on the layer tree
533 // hierarchy before layers can be drawn. 535 // hierarchy before layers can be drawn.
534 DrawProperties<LayerImpl, RenderSurfaceImpl> draw_properties_; 536 DrawProperties<LayerImpl, RenderSurfaceImpl> draw_properties_;
535 537
536 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 538 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
537 }; 539 };
538 540
539 } // namespace cc 541 } // namespace cc
540 542
541 #endif // CC_LAYERS_LAYER_IMPL_H_ 543 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/debug/debug_colors.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698