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

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

Issue 93663004: [#2] Pass gfx structs by const ref (gfx::Rect, gfx::RectF) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to ToT, fix builds on non-linux platforms! Created 6 years, 11 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 | « gpu/command_buffer/client/gles2_implementation.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 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 309
310 // Sometimes the Layer is being updated by something other than SetCanvas 310 // Sometimes the Layer is being updated by something other than SetCanvas
311 // (e.g. the GPU process on UI_COMPOSITOR_IMAGE_TRANSPORT). 311 // (e.g. the GPU process on UI_COMPOSITOR_IMAGE_TRANSPORT).
312 bool layer_updated_externally() const { return layer_updated_externally_; } 312 bool layer_updated_externally() const { return layer_updated_externally_; }
313 313
314 // Requets a copy of the layer's output as a texture or bitmap. 314 // Requets a copy of the layer's output as a texture or bitmap.
315 void RequestCopyOfOutput(scoped_ptr<cc::CopyOutputRequest> request); 315 void RequestCopyOfOutput(scoped_ptr<cc::CopyOutputRequest> request);
316 316
317 // ContentLayerClient 317 // ContentLayerClient
318 virtual void PaintContents( 318 virtual void PaintContents(
319 SkCanvas* canvas, gfx::Rect clip, gfx::RectF* opaque) OVERRIDE; 319 SkCanvas* canvas, const gfx::Rect& clip, gfx::RectF* opaque) OVERRIDE;
320 virtual void DidChangeLayerCanUseLCDText() OVERRIDE {} 320 virtual void DidChangeLayerCanUseLCDText() OVERRIDE {}
321 321
322 cc::Layer* cc_layer() { return cc_layer_; } 322 cc::Layer* cc_layer() { return cc_layer_; }
323 323
324 // TextureLayerClient 324 // TextureLayerClient
325 virtual unsigned PrepareTexture() OVERRIDE; 325 virtual unsigned PrepareTexture() OVERRIDE;
326 virtual bool PrepareTextureMailbox( 326 virtual bool PrepareTextureMailbox(
327 cc::TextureMailbox* mailbox, 327 cc::TextureMailbox* mailbox,
328 scoped_ptr<cc::SingleReleaseCallback>* release_callback, 328 scoped_ptr<cc::SingleReleaseCallback>* release_callback,
329 bool use_shared_memory) OVERRIDE; 329 bool use_shared_memory) OVERRIDE;
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 // The size of the delegated frame in DIP, set when SetShowDelegatedContent 497 // The size of the delegated frame in DIP, set when SetShowDelegatedContent
498 // was called. 498 // was called.
499 gfx::Size delegated_frame_size_in_dip_; 499 gfx::Size delegated_frame_size_in_dip_;
500 500
501 DISALLOW_COPY_AND_ASSIGN(Layer); 501 DISALLOW_COPY_AND_ASSIGN(Layer);
502 }; 502 };
503 503
504 } // namespace ui 504 } // namespace ui
505 505
506 #endif // UI_COMPOSITOR_LAYER_H_ 506 #endif // UI_COMPOSITOR_LAYER_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation.cc ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698