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

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

Issue 684653004: Plumb can_use_lcd_text, contents_opaque directly to ContentLayerClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 (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 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 // delegated frame. 325 // delegated frame.
326 void OnDelegatedFrameDamage(const gfx::Rect& damage_rect_in_dip); 326 void OnDelegatedFrameDamage(const gfx::Rect& damage_rect_in_dip);
327 327
328 // Requets a copy of the layer's output as a texture or bitmap. 328 // Requets a copy of the layer's output as a texture or bitmap.
329 void RequestCopyOfOutput(scoped_ptr<cc::CopyOutputRequest> request); 329 void RequestCopyOfOutput(scoped_ptr<cc::CopyOutputRequest> request);
330 330
331 // ContentLayerClient 331 // ContentLayerClient
332 void PaintContents( 332 void PaintContents(
333 SkCanvas* canvas, 333 SkCanvas* canvas,
334 const gfx::Rect& clip, 334 const gfx::Rect& clip,
335 bool can_use_lcd_text,
336 bool contents_opaque,
335 ContentLayerClient::GraphicsContextStatus gc_status) override; 337 ContentLayerClient::GraphicsContextStatus gc_status) override;
336 void DidChangeLayerCanUseLCDText() override {}
337 bool FillsBoundsCompletely() const override; 338 bool FillsBoundsCompletely() const override;
338 339
339 cc::Layer* cc_layer() { return cc_layer_; } 340 cc::Layer* cc_layer() { return cc_layer_; }
340 341
341 // TextureLayerClient 342 // TextureLayerClient
342 bool PrepareTextureMailbox( 343 bool PrepareTextureMailbox(
343 cc::TextureMailbox* mailbox, 344 cc::TextureMailbox* mailbox,
344 scoped_ptr<cc::SingleReleaseCallback>* release_callback, 345 scoped_ptr<cc::SingleReleaseCallback>* release_callback,
345 bool use_shared_memory) override; 346 bool use_shared_memory) override;
346 347
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 // The size of the frame or texture in DIP, set when SetShowDelegatedContent 512 // The size of the frame or texture in DIP, set when SetShowDelegatedContent
512 // or SetTextureMailbox was called. 513 // or SetTextureMailbox was called.
513 gfx::Size frame_size_in_dip_; 514 gfx::Size frame_size_in_dip_;
514 515
515 DISALLOW_COPY_AND_ASSIGN(Layer); 516 DISALLOW_COPY_AND_ASSIGN(Layer);
516 }; 517 };
517 518
518 } // namespace ui 519 } // namespace ui
519 520
520 #endif // UI_COMPOSITOR_LAYER_H_ 521 #endif // UI_COMPOSITOR_LAYER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698