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

Side by Side Diff: Source/core/html/canvas/WebGLRenderingContextBase.h

Issue 766333003: canvas: fix bugs on HTMLCanvasElement::copiedImage() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: drop vector Created 6 years 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 /* 1 /*
2 * Copyright (C) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 void setupFlags(); 405 void setupFlags();
406 406
407 #if ENABLE(OILPAN) 407 #if ENABLE(OILPAN)
408 PassRefPtr<WebGLSharedWebGraphicsContext3D> sharedWebGraphicsContext3D() con st; 408 PassRefPtr<WebGLSharedWebGraphicsContext3D> sharedWebGraphicsContext3D() con st;
409 #endif 409 #endif
410 410
411 // CanvasRenderingContext implementation. 411 // CanvasRenderingContext implementation.
412 virtual bool is3d() const override { return true; } 412 virtual bool is3d() const override { return true; }
413 virtual bool isAccelerated() const override { return true; } 413 virtual bool isAccelerated() const override { return true; }
414 virtual void setIsHidden(bool) override; 414 virtual void setIsHidden(bool) override;
415 virtual void paintRenderingResultsToCanvas(SourceDrawingBuffer) override; 415 bool paintRenderingResultsToCanvas(SourceDrawingBuffer) override;
416 virtual blink::WebLayer* platformLayer() const override; 416 virtual blink::WebLayer* platformLayer() const override;
417 417
418 void addSharedObject(WebGLSharedObject*); 418 void addSharedObject(WebGLSharedObject*);
419 void addContextObject(WebGLContextObject*); 419 void addContextObject(WebGLContextObject*);
420 void detachAndRemoveAllObjects(); 420 void detachAndRemoveAllObjects();
421 421
422 void destroyContext(); 422 void destroyContext();
423 void markContextChanged(ContentChangeType); 423 void markContextChanged(ContentChangeType);
424 424
425 // Query if the GL implementation is NPOT strict. 425 // Query if the GL implementation is NPOT strict.
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after
975 static IntSize oldestContextSize(); 975 static IntSize oldestContextSize();
976 }; 976 };
977 977
978 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co ntext->is3d(), context.is3d()); 978 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co ntext->is3d(), context.is3d());
979 979
980 } // namespace blink 980 } // namespace blink
981 981
982 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB ase::TextureUnitState); 982 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB ase::TextureUnitState);
983 983
984 #endif // WebGLRenderingContextBase_h 984 #endif // WebGLRenderingContextBase_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698