mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 03:32:37 +00:00
Copy the buffer directly into the bitmap rather than converting to InteropBitmap then back again
Bitmap property was unused, so change to IsCleared property for now
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
// Copyright © 2010-2014 The CefSharp Authors. All rights reserved.
|
||||
//
|
||||
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "Stdafx.h"
|
||||
#include "NativeMethodWrapper.h"
|
||||
|
||||
using namespace System;
|
||||
|
||||
namespace CefSharp
|
||||
{
|
||||
void NativeMethodWrapper::CopyMemoryUsingHandle(IntPtr^ dest, IntPtr^ src, int numberOfBytes)
|
||||
{
|
||||
CopyMemory(dest->ToPointer(), src->ToPointer(), numberOfBytes);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user