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

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

Issue 2688673003: cc: Distinguish single texture mask from normal masks (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « no previous file | cc/layers/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 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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_H_ 5 #ifndef CC_LAYERS_LAYER_H_
6 #define CC_LAYERS_LAYER_H_ 6 #define CC_LAYERS_LAYER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 // This is only virtual for tests. 305 // This is only virtual for tests.
306 // TODO(awoloszyn): Remove this once we no longer need it for tests 306 // TODO(awoloszyn): Remove this once we no longer need it for tests
307 virtual bool DrawsContent() const; 307 virtual bool DrawsContent() const;
308 308
309 // This methods typically need to be overwritten by derived classes. 309 // This methods typically need to be overwritten by derived classes.
310 // TODO(chrishtr): Blink no longer resizes anything during paint. We can 310 // TODO(chrishtr): Blink no longer resizes anything during paint. We can
311 // remove this. 311 // remove this.
312 virtual void SavePaintProperties(); 312 virtual void SavePaintProperties();
313 // Returns true iff anything was updated that needs to be committed. 313 // Returns true iff anything was updated that needs to be committed.
314 virtual bool Update(); 314 virtual bool Update();
315 virtual void SetIsMask(bool is_mask) {} 315 virtual void SetIsMask(bool is_mask) {}
enne (OOO) 2017/02/09 18:37:06 Sorry for the API nit, but because these two funct
316 virtual void SetIsSingleTextureMask(bool is_single_texture_mask_) {}
316 virtual bool IsSuitableForGpuRasterization() const; 317 virtual bool IsSuitableForGpuRasterization() const;
317 318
318 virtual std::unique_ptr<base::trace_event::ConvertableToTraceFormat> 319 virtual std::unique_ptr<base::trace_event::ConvertableToTraceFormat>
319 TakeDebugInfo(); 320 TakeDebugInfo();
320 virtual void didUpdateMainThreadScrollingReasons(); 321 virtual void didUpdateMainThreadScrollingReasons();
321 322
322 void SetLayerClient(LayerClient* client) { inputs_.client = client; } 323 void SetLayerClient(LayerClient* client) { inputs_.client = client; }
323 324
324 virtual bool IsSnapped(); 325 virtual bool IsSnapped();
325 326
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
657 // These all act like draw properties, so don't need push properties. 658 // These all act like draw properties, so don't need push properties.
658 gfx::Rect visible_layer_rect_; 659 gfx::Rect visible_layer_rect_;
659 size_t num_unclipped_descendants_; 660 size_t num_unclipped_descendants_;
660 661
661 DISALLOW_COPY_AND_ASSIGN(Layer); 662 DISALLOW_COPY_AND_ASSIGN(Layer);
662 }; 663 };
663 664
664 } // namespace cc 665 } // namespace cc
665 666
666 #endif // CC_LAYERS_LAYER_H_ 667 #endif // CC_LAYERS_LAYER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698