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

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

Issue 227413011: Remove old texture path in TextureLayer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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 | Annotate | Revision Log
« no previous file with comments | « content/shell/renderer/test_runner/TestPlugin.cpp ('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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 312
313 // ContentLayerClient 313 // ContentLayerClient
314 virtual void PaintContents( 314 virtual void PaintContents(
315 SkCanvas* canvas, const gfx::Rect& clip, gfx::RectF* opaque) OVERRIDE; 315 SkCanvas* canvas, const gfx::Rect& clip, gfx::RectF* opaque) OVERRIDE;
316 virtual void DidChangeLayerCanUseLCDText() OVERRIDE {} 316 virtual void DidChangeLayerCanUseLCDText() OVERRIDE {}
317 virtual bool FillsBoundsCompletely() const OVERRIDE; 317 virtual bool FillsBoundsCompletely() const OVERRIDE;
318 318
319 cc::Layer* cc_layer() { return cc_layer_; } 319 cc::Layer* cc_layer() { return cc_layer_; }
320 320
321 // TextureLayerClient 321 // TextureLayerClient
322 virtual unsigned PrepareTexture() OVERRIDE;
323 virtual bool PrepareTextureMailbox( 322 virtual bool PrepareTextureMailbox(
324 cc::TextureMailbox* mailbox, 323 cc::TextureMailbox* mailbox,
325 scoped_ptr<cc::SingleReleaseCallback>* release_callback, 324 scoped_ptr<cc::SingleReleaseCallback>* release_callback,
326 bool use_shared_memory) OVERRIDE; 325 bool use_shared_memory) OVERRIDE;
327 326
328 float device_scale_factor() const { return device_scale_factor_; } 327 float device_scale_factor() const { return device_scale_factor_; }
329 328
330 // Forces a render surface to be used on this layer. This has no positive 329 // Forces a render surface to be used on this layer. This has no positive
331 // impact, and is only used for benchmarking/testing purpose. 330 // impact, and is only used for benchmarking/testing purpose.
332 void SetForceRenderSurface(bool force); 331 void SetForceRenderSurface(bool force);
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 // The size of the frame or texture in DIP, set when SetShowDelegatedContent 484 // The size of the frame or texture in DIP, set when SetShowDelegatedContent
486 // or SetTextureMailbox was called. 485 // or SetTextureMailbox was called.
487 gfx::Size frame_size_in_dip_; 486 gfx::Size frame_size_in_dip_;
488 487
489 DISALLOW_COPY_AND_ASSIGN(Layer); 488 DISALLOW_COPY_AND_ASSIGN(Layer);
490 }; 489 };
491 490
492 } // namespace ui 491 } // namespace ui
493 492
494 #endif // UI_COMPOSITOR_LAYER_H_ 493 #endif // UI_COMPOSITOR_LAYER_H_
OLDNEW
« no previous file with comments | « content/shell/renderer/test_runner/TestPlugin.cpp ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698