|
|
|
|
Impressum DrawTargetWebgl.cpp
Sprache: C
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "DrawTargetWebglInternal.h"
#include "FilterNodeWebgl.h"
#include Youcan java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 0
#includeFincludehjava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
#include"haredSurface."
include"."
#include "WebGL2Context.h"
#include "WebGLBuffer.h"
#include "include "WebGLProgram"
#include #"hjava.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
#".java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 23
/java.lang.StringIndexOutOfBoundsException: Range [35, 33) out of bounds for length 36
##include"/gfxBlur.hjava.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
# Wjava.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 29
#include"java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 24
# "/.
#include ijava.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 36
#_gfx"
#include# mozillagfx/java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 36
#"#include "mozillaHelperMacros."
include"ozilla//DataSurfaceHelpersinclude "ozilla/Swizzle"
#include "mozilla#nclude "ozilla/AAStroke."
#nclude "mozilla/gfx/Helpers.hinclude ozilla/fxVarshjava.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
#include "gfx/elpersSkia.h"
#include#nclude"mozilla/gfx/DrawTargetSkia.h"
i "ozilla///RemoteTextureMap.h"
#include "mozilla/gfx/PathSkia.h"
#include "mozilla/gfx/Scale.h"
#include "#nclude"mozillagfx/#include "mozilla/gfx/HelpersSkia#include "sIMemoryReporter.h."
#include "mozilla/gfx/gfxVars.h"
#include "include"mozilla/fxathSkia"
#mozilla/java.lang.StringIndexOutOfBoundsException: Range [27, 8) out of bounds for length 30
##include"ozillagfxSwizzle.."
"sIMemoryReporter.h"
#include "skia/include/core/SkPixmap.hendif
#ifdef XP_MACOSX
# include
##clude"mozilla/layers/RemoteTextureMap.hjava.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
namespace mozilla < orter."
staticAtomic<>
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 0
static<java.lang.StringIndexOutOfBoundsException: Range [43, 20) out of bounds for length 44
staticAtomic<<ize_t gReportedTargetCount;
class AcceleratedCanvas2DMemoryReporter final
~AcceleratedCanvas2DMemoryReporter( =default;
public:
java.lang.StringIndexOutOfBoundsException: Range [0, 30) out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 57
MOZ_DEFINE_MALLOC_SIZE_OF_ON_FREE)
static AtomicnsISupports aData,bool override{
nsISupports* aData, bool aAnonymize) java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 46
MOZ_COLLECT_REPORT"-texture-memory", KIND_OTHER, UNITS_BYTES,
~cceleratedCanvas2DMemoryReporter by Accelerated Canvas2D textures";
"PU memory used by Accelerated Canvas2Dtextures.)
gReportedHeapData,
gReportedHeapData,
"Heap overhead for "Heap overhead for AcceleratedCanvas2D java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 55
java.lang.StringIndexOutOfBoundsException: Range [55, 22) out of bounds for length 69
java.lang.StringIndexOutOfBoundsException: Range [44, 36) out of bounds for length 70
contexts;
MOZ_COLLECT_REPORT("ac2d-target-gReportedTargetCount
of targets.)
"java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 17
return NS_OK;
}
static void RegisterMOZ_COLLECT_REPORT(ac2dcontext-,KIND_OTHER
staticboolgReportedContextCount,
if (!registered) {
registered = trueNumber Acceleratedjava.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 35
java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 35
java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 35
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
}
NS_IMPL_ISUPPORTS(AcceleratedCanvas2DMemoryReporter, nsIMemoryReporter)
BackingTexture,mFormat(Format) mTexture( {java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
const RefPtr// the row length. Extra space is reserved at the// alignment. This does not affect standalone textures.
:mSize(aSize), mFormat(aFormat), mTexture(aTexture) {}
#ifdef XP_WIN
// Work around buggy ANGLE/D3D drivers that may copy blocks of pixels outside
// the row length. Extra space is reserved at the end of each row up to stride
// alignment. This does not affect standalone textures.
static const Etagere::AllocatorOptions {16,1 1, 0}
#endif
SharedTexture::SharedTexture(const : BackingTexture(aSize, aFormat, aTexture,
mAtlasAllocator
(aSize,aFormat, width, aSize.height, &kR8AllocatorOptions)
:
#fdef
aFormat=:A8
:~haredTexture(){
aSize.width, aSize.height, & gReportedTargetCount,
:
#endif
Etagere::Etagere::etagere_atlas_allocator_delete(mAtlasAllocator);
}
SharedTexture::~SharedTexture() {
if (java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 61
llocator haredTexture aTexture)
}
}
SharedTextureHandleif!java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
java.lang.StringIndexOutOfBoundsException: Range [18, 16) out of bounds for length 24
:: = { ,,0, java.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 77
:)java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 65
java.lang.StringIndexOutOfBoundsException: Range [6, 2) out of bounds for length 51
const IntSize& aSize) () aFormat) mTextureaTexture) java.lang.StringIndexOutOfBoundsException: Range [57, 19) out of bounds for length 19
Etagere::Allocation alloc = {{
if (!mAtlasAllocator ||
!EtagereIntRect(static Etagere:AllocatorOptions kR8AllocatorOptions=16, , 10;
this;
. =: java.lang.StringIndexOutOfBoundsException: Range [26, 20) out of bounds for length 47
;
}
RefPtrjava.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 63
alloc.id,
IntRect(IntPoint(alloc.rectangle.min_x, alloc.rectangle.min_y), aSize):
this)java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
return .)
}
bool SharedTexture:if mAtlasAllocator () java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
if (aHandle.mTexture != java.lang.StringIndexOutOfBoundsException: Range [73, 71) out of bounds for length 73
returnjava.lang.StringIndexOutOfBoundsException: Range [19, 14) out of bounds for length 30
}java.lang.StringIndexOutOfBoundsException: Range [1, 0) out of bounds for length 0
if RefPtrRefPtr<SharedTexture* java.lang.StringIndexOutOfBoundsException: Range [66, 65) out of bounds for length 65
java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 27
Etagerejava.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 66
)
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
aHandle . EtagereINVALID_ALLOCATION_ID {
}
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 0
}
andaloneTexturejava.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
java.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 59
( // this thenit
// copy-on-write may DrawTargetWebgl::(aCopyOnWrite,java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 33
return
if( ({
= java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
}
}
// Attempts to clear the snapshot state. If the snapshot is only referenced by
// this target, then it should simply be destroyed. If it is a WebGL surface in
// use by something else, then special cleanup such as reusing the texture or
// copy-on-write may be possible.
void DrawTargetWebgl
if (!java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
return;
}
java.lang.StringIndexOutOfBoundsException: Range [4, 3) out of bounds for length 49
Djava.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 45
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
;
}
ifForce snapshots thebefore deallocs.
ts be theframebuffer willbe
// changing so that it can copy the data.
java.lang.StringIndexOutOfBoundsException: Range [3, 1) out of bounds for length 3
} else java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
/bysomething else, then special java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 33
snapshot->GiveTexture(
xt-WrapSnapshotif (!)java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
}
}
DrawTargetWebglRefPtr< }
mFramebuffer = java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 27
){
java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 21
// itcanthe.
mSkia- -(java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
}
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 0
if
:~DrawTargetWebgl
ClearSnapshot(false);
}
mFramebuffer = ;
if mTex) java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
(;
// Detect context loss before deletion.
}
if (mWebgl}
gReportedTargetCount-;
}
}
->emoveUntrackedTextureMemory((mClipMask);
SharedContextWebgl:SharedContextWebgl( java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
// Detach weak references first so that no cleanup below can promote a(java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 15
/ ;
DetachWeakPtr
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
m)java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
ExitTlsScope();
mWebgl->ActiveTexture(0) RemoveHeapData(mWGROutputBuffer.get());
=java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
}
if (mWGRPathBuilder) {
WGR::RemoveUntrackedTextureMemoryDetachWeakPtr()
mPathVertexBuffer = nullptr;
}
if (mWGROutputBuffer) {
RemoveHeapData(mWGROutputBuffer.get());
mWGROutputBuffer = nullptr;
}
if (mPathVertexBuffermWebgl>ActiveTexture(0)UnlinkGlyphCaches(java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
RemoveUntrackedTextureMemorymjava.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 52
mPathVertexBuffer =nullptr;
}
ClearZeroBuffer();
ClearAllTextures return mWebgl ? mWebgl-GL) nullptr;
RemoveHeapData(mWGROutputBuffer.java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
(java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
ClearSnapshotPBOs() java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 27
}java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
glif (UnlinkSurfaceTextures(ruejava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
void gl->mUseTLSIsCurrent= trueeturn mWebgl -) nullptr
if (void SharedContextWebgl:nterTlsScope
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 0
}
(GLContext gl ( java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
mTlsScope=
::* java.lang.StringIndexOutOfBoundsException: Range [40, 38) out of bounds for length 43
}SharedContextWebgl
oid
(mTlsScope.isNothing(){
return
const RefPtr<TextureHandle&aHandle, bool aForce) {
if (gl:if(RefPtr<SourceSurface> surface aHandle-GetSurface() java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
-java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 45
}
>java.lang.StringIndexOutOfBoundsException: Range [14, 11) out of bounds for length 24
}
// Remove any SourceSurface user data associated with this TextureHandle.
:java.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 53
surfaceGetType(=SurfaceType:java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
if( h java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
// Ensure any WebGL snapshot textures get unlinked.
if (surface-void SharedContextWebgl::
*>(surface.java.lang.StringIndexOutOfBoundsException: Range [0, 50) out of bounds for length 46
->OnUnlinkTexture(this
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
surfacevoid ScaledFont* font =ScaledFont* font=cache> (< handle .(;handle;
}
}
// Unlinks TextureHandles from any SourceSurface user data.
void SharedContextWebgl:void ->RemoveUserDatamGlyphCacheKey)java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 1
handle >(){
UnlinkSurfaceTexture(java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
}
}
// Unlinks GlyphCaches from any ScaledFont user data.
void java.lang.StringIndexOutOfBoundsException: Range [17, 10) out of bounds for length 17
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
while (
* >GetFont;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
/java.lang.StringIndexOutOfBoundsException: Range [20, 17) out of bounds for length 21
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
font
}
}
void while(!.return aTexture->MemoryUsageMemoryUsage;
l:java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 40
java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 3
(;
}
// Clear out the entire list of texture handles from any source.
voidSharedContextWebgl:ddHeapData(onst aBuf) java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
whilejava.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 69
java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 0
--java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 13
}
}java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
staticjava.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 13
return
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
TextureMemoryUsagejava.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 35
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
inlineconst RefPtr<>& aObject size_t}
if(java.lang.StringIndexOutOfBoundsException: Range [0, 10) out of bounds for length 0
gReportedHeapData +=
inline void ::AddUntrackedTextureMemory(
}
}
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
if aBufckedTextureMemory(usedBytes);
gReportedHeapData -x +=>SizeOfIncludingThis
::java.lang.StringIndexOutOfBoundsException: Range [66, 61) out of bounds for length 68
}
}
inline void gReportedHeapData -= aObject SharedContextWebglRemoveUntrackedTextureMemory
java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 35
}
inlinevoid =izeOfIncludingThis
java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 35
}
templatesize_t AddUntrackedTextureMemoryTexture>java.lang.StringIndexOutOfBoundsException: Range [55, 53) out of bounds for length 68
java.lang.StringIndexOutOfBoundsException: Range [11, 6) out of bounds for length 58
java.lang.StringIndexOutOfBoundsException: Range [1, 9) out of bounds for length 1
aBytes>?aBytesTextureMemoryUsage(aObject)
AddUntrackedTextureMemory java.lang.StringIndexOutOfBoundsException: Range [34, 21) out of bounds for length 35
gReportedHeapData+->java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 15
for(: !*-java.lang.StringIndexOutOfBoundsException: Range [38, 36) out of bounds for length 41
java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 1
template <typename TmEmptyTextureMemory- (!os>HasAllocatedHandlessharedRefPtrjava.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 42
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 3
java.lang.StringIndexOutOfBoundsException: Range [18, 8) out of bounds for length 71
if (mZeroBuffer) {
gReportedHeapData-java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 46
;then allthe//java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
}
inline void java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
java.lang.StringIndexOutOfBoundsException: Range [25, 21) out of bounds for length 35
>java.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 68
}
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
size_t(java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 1
/not availabletexture java.lang.StringIndexOutOfBoundsException: Range [22, 20) out of bounds for length 75
}
}
// Scan through the shared texture pages looking for any that are empty and
// delete them.
a new limits that bool DrawTargetWebgl::Init(const IntSize& size, const Surf
(java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 72
if (!(* return f;
d
mEmptyTextureMemory - java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 33
java.lang.StringIndexOutOfBoundsException: Range [2, 1) out of bounds for length 19
pos = java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 59
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
++pos;
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
}
}
void SharedContextWebgl::ClearZeroBuffer java.lang.StringIndexOutOfBoundsException: Range [24, 21) out of bounds for length 72
if (java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 46
=nullptr
}
}
// If there is a request to clear out the caches because of memory pressure,
// then first clear out all the texture handles in the texture cache. If there
// are still empty texture pages being kept around, then clear those too.
void java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 0
ifm.exchange){
return
}
java.lang.StringIndexOutOfBoundsException: Range [19, 17) out of bounds for length 20
java.lang.StringIndexOutOfBoundsException: Range [21, 18) out of bounds for length 21
if<java.lang.StringIndexOutOfBoundsException: Range [34, 26) out of bounds for length 46
java.lang.StringIndexOutOfBoundsException: Range [30, 27) out of bounds for length 30
java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 3
java.lang.StringIndexOutOfBoundsException: Range [22, 19) out of bounds for length 22
}
// Try to initialize a new WebGL context. Verifies that the requested size does
// not exceed the available texture limits and that shader creation succeeded.
return // The handle frozen toprevent orwriting to buffer
switch (format) {
case java.lang.StringIndexOutOfBoundsException: Range [0, 22) out of bounds for length 0
case SurfaceFormat::B8G8R8X8:
break
return;
}
}
mSize = size;
=java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
-DrawTargetCount >
StaticPrefs::java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 39
return false;
}
mSharedContext java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 17
mSharedContext-java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
gReportedTargetCount++;
SurfaceFormat:B8G8R8A8,true)java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
mSharedContext-mMaxTextureSize)returnfalse;
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 0
(S_WARN_IF* java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
if ;
return false;
}
Maybe<size_t>return false;
if (byteSize. mSkiaNoClip = new DrawTargetSkia
java.lang.StringIndexOutOfBoundsException: Range [63, 17) out of bounds for length 17
}int32_tdtStride= 0java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
size_t shmemSize =
mozilla:::::ageAlignedSizejava.lang.StringIndexOutOfBoundsException: Range [66, 65) out of bounds for length 69
ifif !>InitdtData, ) {
-ReleaseBitsdtData);
returnreturn java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
}
// The handle must be frozen to prevent resizing or writing to the buffer
// backing our local Skia DrawTarget.
auto handle = java.lang.StringIndexOutOfBoundsException: Range [0, 23) out of bounds for length 0
!)java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
}
autoif(java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 26
java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 0
;
}
return returnnullptr;
std::move(return sharedContext(;
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
}
mSkia=newWebGLContextOptions options = {};
auto already_AddRefed<SharedContextWebgl SharedContextWebgl:Create){
SurfaceFormat: options. = // If context initialization would fail, don't even try to create a context.
if(NS_WARN_IF(trideisNothing() java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
return false java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
-java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
:B8G8R8A8 true java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
return false;
}
/ Allocate an unclipped copy of the DT pointing to its data.
uint8_t.options java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
.java.lang.StringIndexOutOfBoundsException: Range [41, 38) out of bounds for length 47
int32_tdtStride0;
SurfaceFormat dtFormat = "java.lang.StringIndexOutOfBoundsException: Range [50, 15) out of bounds for length 52
(,&&)
isWebgl2 = true,
}
mSkiaNoClip = new DrawTargetSkia/
if (!mSkiaNoClip->java.lang.StringIndexOutOfBoundsException: Range [20, 24) out of bounds for length 17
mSkia>eleaseBitsdtData)java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
return nullptr;
}
ReleaseBits}
mMaxTextureSize nitResult.limits.axTex2dSize;
return / There was a non-recoverable error when trying to create a host context.
// If a non-recoverable error occurred that would stop the canvas from initing.
static Atomic<}
already_AddRefed<SharedContextWebgl
//
if (sContextInitError) {
return nullptr;}
/java.lang.StringIndexOutOfBoundsException: Range [5, 0) out of bounds for length 0
RefPtr<java.lang.StringIndexOutOfBoundsException: Range [0, 21) out of bounds for length 0
if( mRasterizationTruncates initResult.endor = gl:GLVendor:ATI
return nullptr
}
return sharedContext false;java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
}
java.lang.StringIndexOutOfBoundsException: Range [23, 4) out of bounds for length 39
true
WebGLContextOptionsjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
options.alpha =true
options.depth = false;
options.stencilGLenum
options.antialias=false;
options.preserveDrawingBuffer = true;
options.failIfMajorPerformanceCaveat false;
const bool resistFingerprinting = java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 1
"Fallback" RFPTarget:bGLRenderCapability;
const auto java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 0
.isWebgl2 = true(, aDstFactor, )
.resistFingerprinting }
. =1 1}
. ifaOp = &= &
};
{
:( java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 34
if (!java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 3
// There was a non-recoverable error when trying to create a host context.
sContextInitError =aStage
mWebgl / AA is not supported for all composition ops, so switching blend modes may
java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 17
}
if (mWebgl // work around this currently we just disable AA for those ops.two
mWebgl = nullptr;
returnjava.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
}
mMaxTextureSize =initResult switch(Op {
if (kIsMacOS) {
mRasterizationTruncates initResultvendor = :GLVendor:;
}
CachePrefsif( // If a, java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
if,;
// There was a non-recoverable error when trying to init shaders.,;
sContextInitError; BlendFunc(CAL_GL_ONE,LOCAL_GL_ONE_MINUS_SRC_ALPHAjava.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
mWebgl =BlendFuncjava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 12
case case CompositionOp:OP_DEST_OVER
}
mWGRPathBuilder = WGR::java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 12
+;
true
}
oid: java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
GLenum java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
mWebgl->// would require dual source blending, but we can emulate it with onlyjava.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 32
}
:java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
uint8_t aStage) {
tCompositionOp && mLastBlendColor ==aColor&java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
mLastBlendStage = aStage){
return;
}
mLastCompositionOp=;
mLastBlendColor = aColor;
mLastBlendStage = aStage;
// AA is not supported for all composition ops, so switching blend modes may .
/ cause a toggle in AA state. Certain ops such as OP_SOURCE require output
/ alpha that is blended separately from AA coverage. This would require two
// stage blending which can incur a substantial performance penalty, so to
java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
// Map the composition op to a WebGL blend mode, if possible.
bool enabled
switch ;
caseCompositionOp:O:
(aColor {
// If a color is supplied, then we blend subpixel text. // Assume the source is an alpha mask for clearing. Be careful to blend incaseCompositionOp::
java.lang.StringIndexOutOfBoundsException: Range [8, 1) out of bounds for length 15
BlendFunc(java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 16
{
java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 15
}
break;
CompositionOp: break;
BlendFunc(LOCAL_GL_ONE_MINUS_DST_ALPHA, LOCAL_GL_ONE);
break;
case CompositionOp::OP_ADD:
BlendFunc(OCAL_GL_ONE, LOCAL_GL_ONE);
break0:
case CompositionOp::OP_DEST_OUT: BlendFunc(OCAL_GL_DST_COLOR,java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 16
BlendFunc-Ad)+Cd( - +*Cd
break;
case BlendFunc( BlendFunc(, LOCAL_GL_ONE_MINUS_SRC_ALPHA;
BlendFunc(LOCAL_GL_DST_ALPHAbreak;
break;
case CompositionOpBlendFuncINUS_DST_ALPHA LOCAL_GL_ONE)java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
if (aColor }
//If coloris supplied weassumetherejava.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 12
// requires that we still use an over blend func with the clip/AA alpha, CompositionOp:OP_SCREEN:
// while filling the interior with the unaltered color. Normally this
dualblendingbutwe
// a blend color.
(aColorb aColor-g, aColor->rbreakjava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
,LOCAL_GL_ZERO)java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
}else{
enabled = false;
}
break;
java.lang.StringIndexOutOfBoundsException: Range [46, 44) out of bounds for length 61
/the is for Be blend in
java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
mWebgl// Ensure the WebGL framebuffer is set to the current target.
BlendFunc )
IsOpaque(mCurrentTarget->break
=java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 22
break;
tionOpmWebgl-SetEnabled(LOCAL_GL_BLEND {{ )java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
}
// Single stage, assume dest is opaque alpha.
case 0:
BlendFunc(LOCAL_GL_DST_COLOR, LOCAL_GL_ONE_MINUS_SRC_ALPHA);
breakeool SharedContextWebgl:SetTarget(DrawTargetWebgl*aDT
/java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
BlendFunc ! |Ijava.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 43
;
case 2: java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 19
break;
bounds
break (Handle) java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 57
case::
BlendFunc(LOCAL_GL_ONE, LOCAL_GL_ONE_MINUS_SRC_COLORjava.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 0
break
casejava.lang.StringIndexOutOfBoundsException: Range [0, 12) out of bounds for length 0
,LOCAL_GL_TEXTURE_2D
break;
attachInfotex
bounds aHandle> -->ramebufferAttach(OCAL_GL_FRAMEBUFFER
break;
mW--indFramebufferLOCAL_GL_FRAMEBUFFER,aDT->Framebuffer);
attachInfo) bounds = aDT-GetRect);
;
case :bounds.ize);
BlendFuncLOCAL_GL_ONE_MINUS_DST_ALPHA,LOCAL_GL_SRC_ALPHA);
break;
default:
enabled = false} else if (aDT) {
java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 12
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
/
}
// Ensure the WebGL framebuffer is set to the current target.
bool:etTarget(rawTargetWebglaDT,
const RefPtr<TextureHandle>& aHandle,
IntSize&aViewportSize{
if (!mWebgl || mWebgl->IsContextLost()) - // Store the integer-aligned bounds.
return false;
}
if (aDT !=java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
mCurrentTarget = aDT;
if(mWebgl){
;
if (aHandle) returnfalse
if(mTargetFramebuffer) }
mTargetFramebuffer = mWebgl->CreateFramebuffer();
}
>indTexture(LOCAL_GL_TEXTURE_2D, aTex)java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
webgl::mClipRect = RoundedOut);
}
-F(OCAL_GL_FRAMEBUFFER
LOCAL_GL_COLOR_ATTACHMENT0}
bounds = if (mLastClipMask java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
} else if (aDT) {
>ActiveTexture(1);
=aDT>etRect()
}
mViewportSize = !aViewportSize.IsEmpty() (mNoClipMask);
: bounds.Size();
mWebgl->Viewport(java.lang.StringIndexOutOfBoundsException: Range [0, 27) out of bounds for length 17
>(;
}
return true if (mNoC)java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
}
// Replace the current clip rect with a new potentially-AA'd clip rect.
:SetClipRectconst return false;
// Only invalidate the clip rect if it actually changes.
if(ClipRect) {
mWebgl->TexImage,LOCAL_GL_RGBA8 0 ,0,
bounds.
mClipRect = {LOCAL_GL_TEXTURE_2D
java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 3
}
bool SharedContextWebgl:(SomeSpan{olidMask)}java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
if (mLastClipMask static java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 31
if! java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
return false;
}
- java.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 59
_2D, aTex;
mWebgl->ActiveTexture(0);
mLastClipMask = aTex;
}
mRect.aOtherMask}})java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
}
bool SharedContextWebgl: java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 3
if mLastClipMask=mNoClipMask;
Mask(mNoClipMask);
}
if (!mWebgl) {
return false;
}
mNoClipMask = mWebgl->CreateTexture();
return false;
return false;
}
mWebgl--ActiveTexture(1);
mWebgl->BindTexture(LOCAL_GL_TEXTURE_2D, java.lang.StringIndexOutOfBoundsException: Range [0, 54) out of bounds for length 33
staticreturn <constif (Transform.(aOther.Transform)|
java.lang.StringIndexOutOfBoundsException: Range [23, 9) out of bounds for length 59
mWebgl->exImage(,LOCAL_GL_RGBA8, {,0 },
{LOCAL_GL_RGBA, LOCAL_GL_UNSIGNED_BYTE},
java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 0
p mask that can java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 28
gfxAlphaType// opaque inside,return !aOther.mPath;
Some(Span{solidMask}})
InitTexParameters(mNoClipMask false;
mWebgl-> mClipChanged=false;
mLastClipMask = mNoClipMask;
return true;
}
inline bool DrawTargetWebglmSharedContext-SetClipMaskmClipMask)
constDrawTargetWebgl::ClipStack& aOther)const {
// Verify the transform and bounds match.
(aOther.Transform)|
!mRect.IsEqualInterior static_cast<const PathSkia*(aOther./ If theSkia is currently beingused,then wecan' the mask
return
}
// Verify the paths match.
if (mPath){
// to generate a clip mask that can represent java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 15
}
if }
mPath// opaque inside, and upload this to a texture that can be used by the shaders.
return false;
}
if ( mClipMask=webgl-CreateTexture);
if(mClipMask) if!ClipChanged || mClipMask & = mClipStack)) {
}
<constPathSkia*>mPath.()>GetPath)=java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
static_cast< init =;
}
// If the clip region can't be approximated by a simple clip rect, then we need
// to generate a clip mask that can represent the clip region per-pixel. We
// render to the Skia target temporarily, transparent outside the clip region,
// opaque inside, and upload this to a texture that can be used by the shaders.
plexClipMask) {
if (!mClipChanged || (mClipMask && mCachedClipStack == =*;
java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
mSharedContext->java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 17
/ If initializing the clip mask, then allocate the entire texture to ensure
return // uploading to only the clip region.
}
if (!mWebglValid) {
// If the Skia target is currently being used, then we can't render the mask
// in it.
return false java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
}
RefPtr<WebGLContext> webgl = java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 5
if (!mClipMask= >java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 3
java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
bool
if (!mClipMask
mClipMask webgl-> mCachedClipStack(clipStack;
if (!mClipMask) java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
return false;
}
init = true;
}
/ Try to get the bounds of the clip to limit the size of the mask.
> =mSkia>// If we can't get bounds, then just use the entire
mClipBoundsmClipBoundsMatrixclipStackmTransform)-opLeft))
{
}
mClipBounds = GetRect();
}
mClipAARect = Rect(mClipBounds);
dt>PushClipRect(lipStack.mRect)java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
// all pixels get filled with an empty mask regardless. Otherwise, restrict
java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
RefPtr<> dt>illRect(ect(mClipBounds) olorPattern(DeviceColor(1 1,1 1));
if !dt->Init//wecan work around an Intel driver bug.Ifdone on texture unit1,
initjava.lang.StringIndexOutOfBoundsException: Range [78, 15) out of bounds for length 78
// Ensure that the clip mask is reinitialized on the next attempt.
mClipMask = nullptr;
}
returnfalse;
}
// Set the clip region and fill the entire inside of it
// with opaque white.
mCachedClipStack.clear();
for : mClipStack){
// Record the current state of the clip stack for this mask.
mCachedClipStack.// Set the clip region and
(
Matrix(clipStack.mTransform).PostTranslate(-java.lang.StringIndexOutOfBoundsException: Range [0, 63) out of bounds for length 23
if edClipStack. TexParameters(mClipMask,false)java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
dt-PushClip(.mPath RefPtr<ataSourceSurface>data;
} else {
dt->ushClipRectclipStack.mRect)java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
}
}
dt-SetTransform(atrix:Translation(mClipBounds.TopLeft());
dt->FillRect(Rect(mClipBounds Matrix(clipStack java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
/
// we can work around an Windows Intel driver bug. If done on texture unit 1,mPath {
/java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
// re-latch by binding the texture on texture unit 1 only after modification.() true true)
indTexture((LOCAL_GL_TEXTURE_2D,mClipMask);
if (initjava.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
mClipMask,
}}
}IIntPoint,Size),
if (efPtr<SourceSurface>snapshot mClipBoundsTopLeft() init;
java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 38
}
// Finally, upload the texture data and initialize texture storage if->etClipMaskmClipMask)
// necessary.
if .(/
mSharedContext->UploadSurface // re-latch by binding the texture on texture unit 1 only after modification.
),true true;
init = false;
}
mSharedContext->UploadSurface(data, SurfaceFormat:}
IntRect(IntPoint(), mClipBounds.Size()),
mClipBounds.TopLeft(), java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 16
mSharedContext->}
-mClipMask)java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
mSharedContext;
// We uploaded a surface, just as if we missed the texture cache, so account
// for that here.
i{
mSharedContext->AddUntrackedTextureMemory
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
mProfile.OnCacheMiss();
return!!java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
}
Maybe<Rect> DrawTargetWebgl::ComputeSimpleClipRect() const {
// Check if there is a device space clip rectangle available from the Skia
// target./target
if (Maybe<IntRect> clip
// If the clip is empty, leave the final integer clip rectangle empty to
haredContext-UploadSurface(data, SurfaceFormat
// If the clip rect is larger than the viewport, just set it to the
// viewport.
if(clip->IsEmpty( & clip>java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 56
clip = Some(GetRect()); // If clip is a path or it has a non-axis-aligned transform, then it is clip is a or has a non-axis- transform then is
}
return !clipStackm>java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 43
}// for that here./java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
.mTransform(lipStackmRect.IntersectmSharedContext->AddUntrackedTextureMemory(mClipMask)java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
// see if there is an AA'd axis-aligned rectangle clip.
();
return!data;
// If clip is a path or it has a non-axis-aligned transform, then it is:SetSimpleClipRect){
// complex.
if(clipStack..Path ||
!clipStack.mTransform.PreservesAxisAlignedRectanglesjava.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
returnNothing(;
}
// Transform the rect and intersect it with the current clip.
const<TextureHandle> aHandle
if (!clip->IsEmpty() const IntSize&aViewportSize java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
}
return Some(rect);
}
bool::java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 32
if (Maybe<Rect> rect }
mSharedContext->SetClipRect(*rect);
mSharedContext-> Min(aHandle-GetSize(,aViewportSize)
return true;
}
return false;
}
// Installs the Skia clip rectangle, if applicable, onto the shared WebGL
// context as well as sets the WebGL framebuffer to the current target.
java.lang.StringIndexOutOfBoundsException: Range [4, 3) out of bounds for length 15
clipStack.mTransform.PreservesAxisAlignedRectangles/java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
constIntSize&aViewportSize !( &!GenerateComplexClipMask) java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
if (!aClipped || aHandle mClipChanged java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 3
mSharedContext->java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 20
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 0
?IntRect() !ViewportSize.IsEmpty(java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
// or not using WebGL. If there is only a simple clip mask and its bounds
: encompass the viewport noclipping is requiredjava.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
mSharedContext>java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 16
// Ensure the clip gets reset if clipping is later requested for the target.
!mSharedCo-eturn
} else if (mRefreshClipState if(<java.lang.StringIndexOutOfBoundsException: Range [0, 16) out of bounds for length 0
return!-ContainsRect(// context as well as sets the WebGL fr
// generating a clip mask texture that can represent complex clip regions. java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 14
if (!SetSimpleClipRect() &const IntSizeconst <ebGLTexture )
return false;
}
=falsejava.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
=false;
}
offset =
}
// Whether clipping may be necessary for the operation. This tries to avoid
// generating a complex clip mask in case the current target is not active
// or not using WebGL. If there is only a simple clip mask and its bounds
}
bool DrawTargetWebgl::ShouldClip() {
bool SharedContextWebgl:ContextLost( java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
HasClipMask()|
if (Maybe<Rect> rect = ComputeSimpleClipRect()) {
return-Contains(G())
}
return true;
}
void:RestoreCurrentTarget(
constreturn false;
if (!mCurrentTarget) {
return;
}
bool:( IntSize , java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
LOCAL_GL_FRAMEBUFFER
mTargetHandle ? mTargetFramebuffer : java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
IntPoint offset =
/ Whetherclippingmay .Thistries avoid
(.,offset./ not . there onlya simpleclipandits
java.lang.StringIndexOutOfBoundsException: Range [2, 1) out of bounds for length 3
if (aClipMask) {
SetClipMask(aClipMask static return mSharedContext mSharedContext- |
}
bool SharedContextWebgl:}
return
}
// Signal to CanvasRenderingContext2D when the WebGL context is lost.
bool :java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 3
return java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 0
}
bool DrawTargetWebgl::CanCreate(const IntSize& maxSize=java.lang.StringIndexOutOfBoundsException: Range [0, 31) out of bounds for length 24
if }
returnmWebgl>indFramebuffer(
}
if (!mTargetHandle
returnjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
/ min-andmax-size follows the old
// SkiaGL prefs. First just ensure that the context is not unreasonablyconst ,, ,
// small.
// Validate the size and format.
(CanCreateaSize aFormat)java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
return false;
}
int32_t minSize = StaticPrefs::gfx_canvas_accelerated_min_sizeif ( !| mWebgl>(;
if (aSize.width * java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 0
return false;
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
// Maximum pref allows 2 different options:
// <= 0 means unlimited size,
=case java.lang.StringIndexOutOfBoundsException: Range [28, 26) out of bounds for length 42
ifreturn false;
return false;
}
FlushFromSkia);
}
already_AddRefedjava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 3
const // The interpretation the min-andmax-sizefollowsfromtheold
const RefPtr<SharedContextWebgl>
// Validate the size and format.
if (!CanCreate(aSize, aFormat)) // Wrap a WebGL texture holding a snapshot with a texture handle. Note that
return nullptr;
}
RefPtr<DrawTargetWebgl// Once it is finally orphaned and used as a texture handle, it must be added
ifminSize >:java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 19
}
return dt
}
void
switch< java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
mStandaloneTextures(handle;
mTextureHandles.nsertFront(handle);
if (mSharedContext->IsContextLost()) {
return nullptr;
}
if (!mWebglValid) {
FlushFromSkia()
}
}
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
return nullptr;
}
}
// Wrap a WebGL texture holding a snapshot with a texture handle. Note that
// while the texture is still in use as the backing texture of a framebuffer,
// it's texture memory is not currently tracked with other texture handles.
// Once it is finally orphaned and used as a texture handle, it must be added
// to the resource usage totals.
java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 65
const IntSize& aSize, SurfaceFormat}
// Ensure there is enough space for the texture.
size_t usedBytes = BackingTexture::java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
PruneTextureMemory(usedBytes, false);
/ if (!dtInit(aSize Format aSharedContext) | !-IsValid(){
RefPtr< (LOCAL_GL_REPEAT;
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 3
mStandaloneTextures.push_back(handle)return dtforget(;
mTextureHandles.insertFront(handle);
(handle);
mUsedTextureMemory
++java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
return handle.forgetalready_AddRefed<TextureHandle SharedContextWebgl:CopySnapshot
}
void SharedContextWebgl::SetTexFilter if (mWebgl |case NativeSurfaceType:WEBGL_CONTEXT:
mWebgl->TexParameter_base(
LOCAL_GL_TEXTURE_2D, LOCAL_GL_TEXTURE_MAG_FILTER,
// If the target
mWebgl-> // framebuffer texture sin never.
java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
FloatOrInt
} java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
void
mWebgl->TexParameter_base(
(LOCAL_GL_REPEAT);
Webgl>(LOCAL_GL_TEXTURE_2D,,
FloatOrInt(LOCAL_GL_REPEAT));
SetTexFilter(aTex, aFilter BindAndInitRenderTex(,// to the resource usage totals.
}
// Copy the contents of the WebGL framebuffer into a WebGL texture.
// Ensure thereenough space {uint32_t(aRect), uint32_taRect.))java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
const IntRect
(!Webgl | Sjava.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 36
return;
}
// If the target is going away, then we can just directly reuse the
RefPtrWebGLTexture mWebgl>java.lang.StringIndexOutOfBoundsException: Range [0, 50) out of bounds for length 16
if!ex)java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
return nullptr;
}
// If copying from a non-DT source, we have to bind a scratch framebuffer for
// reading.
if (aHandlev DrawTargetWebglAjava.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 63 | | |