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

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

Issue 12374028: Allow WebExternalTextureLayerClient to work with mailboxes. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase Created 7 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
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 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 // ContentLayerClient 300 // ContentLayerClient
301 virtual void PaintContents( 301 virtual void PaintContents(
302 SkCanvas* canvas, gfx::Rect clip, gfx::RectF* opaque) OVERRIDE; 302 SkCanvas* canvas, gfx::Rect clip, gfx::RectF* opaque) OVERRIDE;
303 virtual void DidChangeLayerCanUseLCDText() OVERRIDE {} 303 virtual void DidChangeLayerCanUseLCDText() OVERRIDE {}
304 304
305 cc::Layer* cc_layer() { return cc_layer_; } 305 cc::Layer* cc_layer() { return cc_layer_; }
306 306
307 // TextureLayerClient 307 // TextureLayerClient
308 virtual unsigned PrepareTexture(cc::ResourceUpdateQueue* queue) OVERRIDE; 308 virtual unsigned PrepareTexture(cc::ResourceUpdateQueue* queue) OVERRIDE;
309 virtual WebKit::WebGraphicsContext3D* Context3d() OVERRIDE; 309 virtual WebKit::WebGraphicsContext3D* Context3d() OVERRIDE;
310 virtual bool PrepareTextureMailbox(cc::TextureMailbox*) OVERRIDE;
310 311
311 float device_scale_factor() const { return device_scale_factor_; } 312 float device_scale_factor() const { return device_scale_factor_; }
312 313
313 // Forces a render surface to be used on this layer. This has no positive 314 // Forces a render surface to be used on this layer. This has no positive
314 // impact, and is only used for benchmarking/testing purpose. 315 // impact, and is only used for benchmarking/testing purpose.
315 void SetForceRenderSurface(bool force); 316 void SetForceRenderSurface(bool force);
316 bool force_render_surface() const { return force_render_surface_; } 317 bool force_render_surface() const { return force_render_surface_; }
317 318
318 // LayerAnimationEventObserver 319 // LayerAnimationEventObserver
319 virtual void OnAnimationStarted(const cc::AnimationEvent& event) OVERRIDE; 320 virtual void OnAnimationStarted(const cc::AnimationEvent& event) OVERRIDE;
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 // The size of the delegated frame in DIP, set when SetDelegatedFrame was 468 // The size of the delegated frame in DIP, set when SetDelegatedFrame was
468 // called. 469 // called.
469 gfx::Size delegated_frame_size_in_dip_; 470 gfx::Size delegated_frame_size_in_dip_;
470 471
471 DISALLOW_COPY_AND_ASSIGN(Layer); 472 DISALLOW_COPY_AND_ASSIGN(Layer);
472 }; 473 };
473 474
474 } // namespace ui 475 } // namespace ui
475 476
476 #endif // UI_COMPOSITOR_LAYER_H_ 477 #endif // UI_COMPOSITOR_LAYER_H_
OLDNEW
« no previous file with comments | « content/renderer/browser_plugin/browser_plugin_compositing_helper.cc ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698