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

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

Issue 253013003: Enable disabling WebCore::GraphicsContext in telemetry. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Patch to land Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « cc/trees/layer_tree_host_unittest.cc ('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 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 void set_scale_content(bool scale_content) { scale_content_ = scale_content; } 308 void set_scale_content(bool scale_content) { scale_content_ = scale_content; }
309 309
310 // Returns true if the layer scales its content. 310 // Returns true if the layer scales its content.
311 bool scale_content() const { return scale_content_; } 311 bool scale_content() const { return scale_content_; }
312 312
313 // Requets a copy of the layer's output as a texture or bitmap. 313 // Requets a copy of the layer's output as a texture or bitmap.
314 void RequestCopyOfOutput(scoped_ptr<cc::CopyOutputRequest> request); 314 void RequestCopyOfOutput(scoped_ptr<cc::CopyOutputRequest> request);
315 315
316 // ContentLayerClient 316 // ContentLayerClient
317 virtual void PaintContents( 317 virtual void PaintContents(
318 SkCanvas* canvas, const gfx::Rect& clip, gfx::RectF* opaque) OVERRIDE; 318 SkCanvas* canvas,
319 const gfx::Rect& clip,
320 gfx::RectF* opaque,
321 ContentLayerClient::GraphicsContextStatus gc_status) OVERRIDE;
319 virtual void DidChangeLayerCanUseLCDText() OVERRIDE {} 322 virtual void DidChangeLayerCanUseLCDText() OVERRIDE {}
320 virtual bool FillsBoundsCompletely() const OVERRIDE; 323 virtual bool FillsBoundsCompletely() const OVERRIDE;
321 324
322 cc::Layer* cc_layer() { return cc_layer_; } 325 cc::Layer* cc_layer() { return cc_layer_; }
323 326
324 // TextureLayerClient 327 // TextureLayerClient
325 virtual bool PrepareTextureMailbox( 328 virtual bool PrepareTextureMailbox(
326 cc::TextureMailbox* mailbox, 329 cc::TextureMailbox* mailbox,
327 scoped_ptr<cc::SingleReleaseCallback>* release_callback, 330 scoped_ptr<cc::SingleReleaseCallback>* release_callback,
328 bool use_shared_memory) OVERRIDE; 331 bool use_shared_memory) OVERRIDE;
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 // The size of the frame or texture in DIP, set when SetShowDelegatedContent 493 // The size of the frame or texture in DIP, set when SetShowDelegatedContent
491 // or SetTextureMailbox was called. 494 // or SetTextureMailbox was called.
492 gfx::Size frame_size_in_dip_; 495 gfx::Size frame_size_in_dip_;
493 496
494 DISALLOW_COPY_AND_ASSIGN(Layer); 497 DISALLOW_COPY_AND_ASSIGN(Layer);
495 }; 498 };
496 499
497 } // namespace ui 500 } // namespace ui
498 501
499 #endif // UI_COMPOSITOR_LAYER_H_ 502 #endif // UI_COMPOSITOR_LAYER_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_unittest.cc ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698