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

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

Issue 51653008: Remove WGC3D::isContextLost references from cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix android build Created 7 years, 1 month 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/renderer/pepper/pepper_plugin_instance_impl.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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 314
315 // ContentLayerClient 315 // ContentLayerClient
316 virtual void PaintContents( 316 virtual void PaintContents(
317 SkCanvas* canvas, gfx::Rect clip, gfx::RectF* opaque) OVERRIDE; 317 SkCanvas* canvas, gfx::Rect clip, gfx::RectF* opaque) OVERRIDE;
318 virtual void DidChangeLayerCanUseLCDText() OVERRIDE {} 318 virtual void DidChangeLayerCanUseLCDText() OVERRIDE {}
319 319
320 cc::Layer* cc_layer() { return cc_layer_; } 320 cc::Layer* cc_layer() { return cc_layer_; }
321 321
322 // TextureLayerClient 322 // TextureLayerClient
323 virtual unsigned PrepareTexture() OVERRIDE; 323 virtual unsigned PrepareTexture() OVERRIDE;
324 virtual WebKit::WebGraphicsContext3D* Context3d() OVERRIDE;
325 virtual bool PrepareTextureMailbox( 324 virtual bool PrepareTextureMailbox(
326 cc::TextureMailbox* mailbox, 325 cc::TextureMailbox* mailbox,
327 scoped_ptr<cc::SingleReleaseCallback>* release_callback, 326 scoped_ptr<cc::SingleReleaseCallback>* release_callback,
328 bool use_shared_memory) OVERRIDE; 327 bool use_shared_memory) OVERRIDE;
329 328
330 float device_scale_factor() const { return device_scale_factor_; } 329 float device_scale_factor() const { return device_scale_factor_; }
331 330
332 // Forces a render surface to be used on this layer. This has no positive 331 // Forces a render surface to be used on this layer. This has no positive
333 // impact, and is only used for benchmarking/testing purpose. 332 // impact, and is only used for benchmarking/testing purpose.
334 void SetForceRenderSurface(bool force); 333 void SetForceRenderSurface(bool force);
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 // The size of the delegated frame in DIP, set when SetShowDelegatedContent 492 // The size of the delegated frame in DIP, set when SetShowDelegatedContent
494 // was called. 493 // was called.
495 gfx::Size delegated_frame_size_in_dip_; 494 gfx::Size delegated_frame_size_in_dip_;
496 495
497 DISALLOW_COPY_AND_ASSIGN(Layer); 496 DISALLOW_COPY_AND_ASSIGN(Layer);
498 }; 497 };
499 498
500 } // namespace ui 499 } // namespace ui
501 500
502 #endif // UI_COMPOSITOR_LAYER_H_ 501 #endif // UI_COMPOSITOR_LAYER_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_plugin_instance_impl.cc ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698