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

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: Linker Fix 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 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 // ContentLayerClient 299 // ContentLayerClient
300 virtual void PaintContents( 300 virtual void PaintContents(
301 SkCanvas* canvas, gfx::Rect clip, gfx::RectF* opaque) OVERRIDE; 301 SkCanvas* canvas, gfx::Rect clip, gfx::RectF* opaque) OVERRIDE;
302 virtual void DidChangeLayerCanUseLCDText() OVERRIDE {} 302 virtual void DidChangeLayerCanUseLCDText() OVERRIDE {}
303 303
304 cc::Layer* cc_layer() { return cc_layer_; } 304 cc::Layer* cc_layer() { return cc_layer_; }
305 305
306 // TextureLayerClient 306 // TextureLayerClient
307 virtual unsigned PrepareTexture(cc::ResourceUpdateQueue* queue) OVERRIDE; 307 virtual unsigned PrepareTexture(cc::ResourceUpdateQueue* queue) OVERRIDE;
308 virtual WebKit::WebGraphicsContext3D* Context3d() OVERRIDE; 308 virtual WebKit::WebGraphicsContext3D* Context3d() OVERRIDE;
309 virtual bool PrepareTextureMailbox(cc::TextureMailbox* mailbox) OVERRIDE;
309 310
310 float device_scale_factor() const { return device_scale_factor_; } 311 float device_scale_factor() const { return device_scale_factor_; }
311 312
312 // Forces a render surface to be used on this layer. This has no positive 313 // Forces a render surface to be used on this layer. This has no positive
313 // impact, and is only used for benchmarking/testing purpose. 314 // impact, and is only used for benchmarking/testing purpose.
314 void SetForceRenderSurface(bool force); 315 void SetForceRenderSurface(bool force);
315 bool force_render_surface() const { return force_render_surface_; } 316 bool force_render_surface() const { return force_render_surface_; }
316 317
317 // LayerAnimationEventObserver 318 // LayerAnimationEventObserver
318 virtual void OnAnimationStarted(const cc::AnimationEvent& event) OVERRIDE; 319 virtual void OnAnimationStarted(const cc::AnimationEvent& event) OVERRIDE;
(...skipping 148 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