зеркало из https://github.com/mozilla/moz-skia.git
Minor bug fix in SampleApp
http://codereview.appspot.com/5992081/ git-svn-id: http://skia.googlecode.com/svn/trunk@3638 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
Родитель
363a4c22af
Коммит
4750fa55f2
|
@ -659,7 +659,9 @@ static void usage(const char * argv0) {
|
|||
SkDebugf(" msaa: request multisampling with the given sample count.\n");
|
||||
}
|
||||
|
||||
SampleWindow::SampleWindow(void* hwnd, int argc, char** argv, DeviceManager* devManager) : INHERITED(hwnd) {
|
||||
SampleWindow::SampleWindow(void* hwnd, int argc, char** argv, DeviceManager* devManager)
|
||||
: INHERITED(hwnd)
|
||||
, fDevManager(NULL) {
|
||||
|
||||
SkGMRegistyToSampleRegistry();
|
||||
{
|
||||
|
@ -1952,6 +1954,7 @@ void SampleWindow::updateTitle() {
|
|||
}
|
||||
|
||||
if (gDeviceTypeIsGPU[fDeviceType] &&
|
||||
NULL != fDevManager &&
|
||||
fDevManager->getGrRenderTarget()->numSamples() > 0) {
|
||||
title.appendf(" [MSAA: %d]",
|
||||
fDevManager->getGrRenderTarget()->numSamples());
|
||||
|
|
Загрузка…
Ссылка в новой задаче