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

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

Issue 1452353002: Turn off computation of the interest rect in cc in synchronized paint mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « third_party/WebKit/public/platform/WebContentLayerClient.h ('k') | 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 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 void OnDeviceScaleFactorChanged(float device_scale_factor); 340 void OnDeviceScaleFactorChanged(float device_scale_factor);
341 341
342 // Notifies the layer that one of its children has received a new 342 // Notifies the layer that one of its children has received a new
343 // delegated frame. 343 // delegated frame.
344 void OnDelegatedFrameDamage(const gfx::Rect& damage_rect_in_dip); 344 void OnDelegatedFrameDamage(const gfx::Rect& damage_rect_in_dip);
345 345
346 // Requets a copy of the layer's output as a texture or bitmap. 346 // Requets a copy of the layer's output as a texture or bitmap.
347 void RequestCopyOfOutput(scoped_ptr<cc::CopyOutputRequest> request); 347 void RequestCopyOfOutput(scoped_ptr<cc::CopyOutputRequest> request);
348 348
349 // ContentLayerClient 349 // ContentLayerClient
350 gfx::Rect PaintableRegion() override;
sky 2015/11/22 15:42:09 Just to make sure, this is the bounds of the paren
chrishtr 2015/11/23 16:52:02 It's the paintable bounds of this layer, in the lo
350 scoped_refptr<cc::DisplayItemList> PaintContentsToDisplayList( 351 scoped_refptr<cc::DisplayItemList> PaintContentsToDisplayList(
351 const gfx::Rect& clip, 352 const gfx::Rect& clip,
352 ContentLayerClient::PaintingControlSetting painting_control) override; 353 ContentLayerClient::PaintingControlSetting painting_control) override;
353 bool FillsBoundsCompletely() const override; 354 bool FillsBoundsCompletely() const override;
354 size_t GetApproximateUnsharedMemoryUsage() const override; 355 size_t GetApproximateUnsharedMemoryUsage() const override;
355 356
356 cc::Layer* cc_layer_for_testing() { return cc_layer_; } 357 cc::Layer* cc_layer_for_testing() { return cc_layer_; }
357 358
358 // TextureLayerClient 359 // TextureLayerClient
359 bool PrepareTextureMailbox( 360 bool PrepareTextureMailbox(
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 // The size of the frame or texture in DIP, set when SetShowDelegatedContent 535 // The size of the frame or texture in DIP, set when SetShowDelegatedContent
535 // or SetTextureMailbox was called. 536 // or SetTextureMailbox was called.
536 gfx::Size frame_size_in_dip_; 537 gfx::Size frame_size_in_dip_;
537 538
538 DISALLOW_COPY_AND_ASSIGN(Layer); 539 DISALLOW_COPY_AND_ASSIGN(Layer);
539 }; 540 };
540 541
541 } // namespace ui 542 } // namespace ui
542 543
543 #endif // UI_COMPOSITOR_LAYER_H_ 544 #endif // UI_COMPOSITOR_LAYER_H_
OLDNEW
« no previous file with comments | « third_party/WebKit/public/platform/WebContentLayerClient.h ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698