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

Side by Side Diff: samplecode/SampleApp.cpp

Issue 1001503002: Implement support for mixed sampled render targets (Closed) Base URL: https://skia.googlesource.com/skia.git@mix1
Patch Set: Fix build error related to isMultisamped renaming Created 5 years, 6 months 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
« no previous file with comments | « include/gpu/GrRenderTarget.h ('k') | src/core/SkMultiPictureDraw.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "SampleApp.h" 8 #include "SampleApp.h"
9 9
10 #include "OverView.h" 10 #include "OverView.h"
(...skipping 1935 matching lines...) Expand 10 before | Expand all | Expand 10 after
1946 default: 1946 default:
1947 break; 1947 break;
1948 } 1948 }
1949 title.prepend("! "); 1949 title.prepend("! ");
1950 } 1950 }
1951 1951
1952 #if SK_SUPPORT_GPU 1952 #if SK_SUPPORT_GPU
1953 if (IsGpuDeviceType(fDeviceType) && 1953 if (IsGpuDeviceType(fDeviceType) &&
1954 fDevManager && 1954 fDevManager &&
1955 fDevManager->getGrRenderTarget() && 1955 fDevManager->getGrRenderTarget() &&
1956 fDevManager->getGrRenderTarget()->numSamples() > 0) { 1956 fDevManager->getGrRenderTarget()->numColorSamples() > 0) {
1957 title.appendf(" [MSAA: %d]", 1957 title.appendf(" [MSAA: %d]",
1958 fDevManager->getGrRenderTarget()->numSamples()); 1958 fDevManager->getGrRenderTarget()->numColorSamples());
1959 } 1959 }
1960 #endif 1960 #endif
1961 1961
1962 this->setTitle(title.c_str()); 1962 this->setTitle(title.c_str());
1963 } 1963 }
1964 1964
1965 void SampleWindow::onSizeChange() { 1965 void SampleWindow::onSizeChange() {
1966 this->INHERITED::onSizeChange(); 1966 this->INHERITED::onSizeChange();
1967 1967
1968 SkView::F2BIter iter(this); 1968 SkView::F2BIter iter(this);
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
2299 setenv("ANDROID_ROOT", "/android/device/data", 0); 2299 setenv("ANDROID_ROOT", "/android/device/data", 0);
2300 #endif 2300 #endif
2301 SkGraphics::Init(); 2301 SkGraphics::Init();
2302 SkEvent::Init(); 2302 SkEvent::Init();
2303 } 2303 }
2304 2304
2305 void application_term() { 2305 void application_term() {
2306 SkEvent::Term(); 2306 SkEvent::Term();
2307 SkGraphics::Term(); 2307 SkGraphics::Term();
2308 } 2308 }
OLDNEW
« no previous file with comments | « include/gpu/GrRenderTarget.h ('k') | src/core/SkMultiPictureDraw.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698