This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// StructureOfArrays.cpp : Defines the entry point for the console application. | |
// | |
#include "stdafx.h" | |
#include <cassert> | |
#include <vector> | |
struct Vec3 { | |
float x = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void MyTest::RequestTextureCopy() { | |
base::TimeTicks start_time = base::TimeTicks::Now(); | |
content::ContentViewCoreImpl* content_view_core = GetContentViewCoreImpl(); | |
DCHECK(content_view_core); | |
scoped_refptr<cc::DelegatedRendererLayer> readback_layer = | |
content_view_core->CreateDelegatedRendererLayerForFrameProvider(); | |
ui::WindowAndroidCompositor* compositor = |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
coped_refptr<cc::ContextProvider> CompositorImpl::OffscreenContextProvider() { | |
// There is no support for offscreen contexts, or compositor filters that | |
// would require them in this compositor instance. If they are needed, | |
// then implement a context provider that provides contexts from | |
// ImageTransportSurfaceAndroid. | |
return NULL; | |
} |