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

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

Issue 2451273003: cc : Snap texture layers to pixel boundary (Closed)
Patch Set: Created 4 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
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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 376
377 // Release resources held by this layer. Called when the output surface 377 // Release resources held by this layer. Called when the output surface
378 // that rendered this layer was lost or a rendering mode switch has occured. 378 // that rendered this layer was lost or a rendering mode switch has occured.
379 virtual void ReleaseResources(); 379 virtual void ReleaseResources();
380 380
381 // Recreate resources that are required after they were released by a 381 // Recreate resources that are required after they were released by a
382 // ReleaseResources call. 382 // ReleaseResources call.
383 virtual void RecreateResources(); 383 virtual void RecreateResources();
384 384
385 virtual std::unique_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl); 385 virtual std::unique_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl);
386 virtual bool IsSnapped();
386 virtual void PushPropertiesTo(LayerImpl* layer); 387 virtual void PushPropertiesTo(LayerImpl* layer);
387 388
388 virtual void GetAllPrioritizedTilesForTracing( 389 virtual void GetAllPrioritizedTilesForTracing(
389 std::vector<PrioritizedTile>* prioritized_tiles) const; 390 std::vector<PrioritizedTile>* prioritized_tiles) const;
390 virtual void AsValueInto(base::trace_event::TracedValue* dict) const; 391 virtual void AsValueInto(base::trace_event::TracedValue* dict) const;
391 392
392 virtual size_t GPUMemoryUsageInBytes() const; 393 virtual size_t GPUMemoryUsageInBytes() const;
393 394
394 void SetNeedsPushProperties(); 395 void SetNeedsPushProperties();
395 396
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 bool scrolls_drawn_descendant_ : 1; 579 bool scrolls_drawn_descendant_ : 1;
579 bool has_will_change_transform_hint_ : 1; 580 bool has_will_change_transform_hint_ : 1;
580 bool needs_push_properties_ : 1; 581 bool needs_push_properties_ : 1;
581 582
582 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 583 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
583 }; 584 };
584 585
585 } // namespace cc 586 } // namespace cc
586 587
587 #endif // CC_LAYERS_LAYER_IMPL_H_ 588 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698