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

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

Issue 1094553002: Revert "Speculative revert by sheriff" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « tools/run-bisect-perf-regression.py ('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 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 void OnDelegatedFrameDamage(const gfx::Rect& damage_rect_in_dip); 335 void OnDelegatedFrameDamage(const gfx::Rect& damage_rect_in_dip);
336 336
337 // Requets a copy of the layer's output as a texture or bitmap. 337 // Requets a copy of the layer's output as a texture or bitmap.
338 void RequestCopyOfOutput(scoped_ptr<cc::CopyOutputRequest> request); 338 void RequestCopyOfOutput(scoped_ptr<cc::CopyOutputRequest> request);
339 339
340 // ContentLayerClient 340 // ContentLayerClient
341 void PaintContents( 341 void PaintContents(
342 SkCanvas* canvas, 342 SkCanvas* canvas,
343 const gfx::Rect& clip, 343 const gfx::Rect& clip,
344 ContentLayerClient::PaintingControlSetting painting_control) override; 344 ContentLayerClient::PaintingControlSetting painting_control) override;
345 scoped_refptr<cc::DisplayItemList> PaintContentsToDisplayList( 345 void PaintContentsToDisplayList(
346 cc::DisplayItemList* display_list,
346 const gfx::Rect& clip, 347 const gfx::Rect& clip,
347 ContentLayerClient::PaintingControlSetting painting_control) override; 348 ContentLayerClient::PaintingControlSetting painting_control) override;
348 bool FillsBoundsCompletely() const override; 349 bool FillsBoundsCompletely() const override;
349 350
350 cc::Layer* cc_layer() { return cc_layer_; } 351 cc::Layer* cc_layer() { return cc_layer_; }
351 352
352 // TextureLayerClient 353 // TextureLayerClient
353 bool PrepareTextureMailbox( 354 bool PrepareTextureMailbox(
354 cc::TextureMailbox* mailbox, 355 cc::TextureMailbox* mailbox,
355 scoped_ptr<cc::SingleReleaseCallback>* release_callback, 356 scoped_ptr<cc::SingleReleaseCallback>* release_callback,
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 // The size of the frame or texture in DIP, set when SetShowDelegatedContent 529 // The size of the frame or texture in DIP, set when SetShowDelegatedContent
529 // or SetTextureMailbox was called. 530 // or SetTextureMailbox was called.
530 gfx::Size frame_size_in_dip_; 531 gfx::Size frame_size_in_dip_;
531 532
532 DISALLOW_COPY_AND_ASSIGN(Layer); 533 DISALLOW_COPY_AND_ASSIGN(Layer);
533 }; 534 };
534 535
535 } // namespace ui 536 } // namespace ui
536 537
537 #endif // UI_COMPOSITOR_LAYER_H_ 538 #endif // UI_COMPOSITOR_LAYER_H_
OLDNEW
« no previous file with comments | « tools/run-bisect-perf-regression.py ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698